Your message dated Mon, 18 Dec 2017 05:19:20 +0000 with message-id <[email protected]> and subject line Bug#670517: fixed in libheimdal-kadm5-perl 0.08-5 has caused the Debian Bug report #670517, regarding segmentation fault in Heimdal::Kadm5::Principal->getModName to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 670517: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=670517 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: libheimdal-kadm5-perl Version: 0.08-3 Tags: patch The sequence $client = new Heimdal::Kadm5::Client (Principal => 'admin'); $princ = $client->makePrincipal ('newprinc'); $princ->dump; results in: [some lines omitted] Last modified: never Segmentation fault I've tested the attached patch which appears to solve the problem.Guard against null pointer dereference in second argument to krb5_unparse_name. --- a/Kadm5.xs +++ b/Kadm5.xs @@ -737,14 +737,19 @@ char *p; krb5_error_code ret; - ret = krb5_unparse_name(spp->handle->context,spp->principal.mod_name,&p); - if (ret) + if (spp->principal.mod_name) + { + ret = krb5_unparse_name(spp->handle->context,spp->principal.mod_name,&p); + if (ret) { safefree(p); croak("[Heimdal::Kadm5] krb5_unparse_name failed: %s\n", krb5_get_err_text(spp->handle->context, ret)); } - RETVAL = newSVpv(p,0); + RETVAL = newSVpv(p,0); + } + else + RETVAL = &PL_sv_undef; } OUTPUT: RETVAL
--- End Message ---
--- Begin Message ---Source: libheimdal-kadm5-perl Source-Version: 0.08-5 We believe that the bug you reported is fixed in the latest version of libheimdal-kadm5-perl, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Russ Allbery <[email protected]> (supplier of updated libheimdal-kadm5-perl package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Sun, 17 Dec 2017 20:55:21 -0800 Source: libheimdal-kadm5-perl Binary: libheimdal-kadm5-perl Architecture: source amd64 Version: 0.08-5 Distribution: unstable Urgency: medium Maintainer: Debian Perl Group <[email protected]> Changed-By: Russ Allbery <[email protected]> Description: libheimdal-kadm5-perl - Perl module to administer a Heimdal Kerberos KDC Closes: 670517 837628 Changes: libheimdal-kadm5-perl (0.08-5) unstable; urgency=medium . * Build with current Heimdal. (Closes: #837628) * Guard against a NULL mod_name in getModName and return undef. Thanks, Sergio Gelato. (Closes: #670517) * Strip out the -rpath setting from the Heimdal krb5-config --libs call. This isn't necessary; the libraries are installed in the normal library search path. * Strip the LD_RUN_PATH setting added by ExtUtils::MakeMaker out of the generated Makefile before building the package. * Fix spelling errors in manual page caught by Lintian. * Convert to a proper 3.0 (quilt) package with managed patches. * Contribute the package to the Debian Perl Group. - Change Maintainer to the group. - Add myself to Uploaders. - Change Homepage to the metacpan.org URL. - Change Vcs-Git and Vcs-Browser to point to the pkg-perl repository. - Change debian/watch to use the metacpan.org URL. * Update debhelper compatibility level to V11. * Update standards version to 4.1.2. - Rewrite copyright file in copyright-format 1.0. - Change priority to optional. * Run wrap-and-sort -ast. Checksums-Sha1: 0926c519120b6618a50e13b478ea351e786bf4ee 1740 libheimdal-kadm5-perl_0.08-5.dsc d93dd3646c01819d6e68aa0e3547ff752ecd3f5d 5680 libheimdal-kadm5-perl_0.08-5.debian.tar.xz e272d2a86109224da9b27c19474f1f575cb640cc 60152 libheimdal-kadm5-perl-dbgsym_0.08-5_amd64.deb f55e85f9ee3708a6f3989159b8152f36542328e6 6474 libheimdal-kadm5-perl_0.08-5_amd64.buildinfo dd2e586a5a1628b209d6fe74c766db3795a23f5d 28520 libheimdal-kadm5-perl_0.08-5_amd64.deb Checksums-Sha256: 8420a81529fcd9377e5a4b6a51ef04f829ac58dd3dbd3b5e95f896818a90fd1a 1740 libheimdal-kadm5-perl_0.08-5.dsc cec31de1c5cf1cbe69a235aa7d52dc00c0d816a048060cbc5c82d6d2d784e27b 5680 libheimdal-kadm5-perl_0.08-5.debian.tar.xz 572dba18a513d45bca42294c631406d2eb90ee3a934900dee8fef4f97810a634 60152 libheimdal-kadm5-perl-dbgsym_0.08-5_amd64.deb 6c2432cfffd0e76fce282e743018b348f87d2c0eabd4b1dba612d1e1bdbe3a34 6474 libheimdal-kadm5-perl_0.08-5_amd64.buildinfo cf36e190c28701b882b84c947af636d2211ae5330400e749b64156ac7baf4ae9 28520 libheimdal-kadm5-perl_0.08-5_amd64.deb Files: 530c8404bd7c38cb4f40acb74d592cb3 1740 perl optional libheimdal-kadm5-perl_0.08-5.dsc 8064852b4022203e20ab2ac4e031187d 5680 perl optional libheimdal-kadm5-perl_0.08-5.debian.tar.xz 7bca424792244e124ef3754c74475ec0 60152 debug optional libheimdal-kadm5-perl-dbgsym_0.08-5_amd64.deb bee9fb24d3fc18df5cd8a38dbbb99d89 6474 perl optional libheimdal-kadm5-perl_0.08-5_amd64.buildinfo b37189e4a25d318fceaca861918d8d27 28520 perl optional libheimdal-kadm5-perl_0.08-5_amd64.deb -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE1zk0tJZ0z1zNmsJ4fYAxXFc23nUFAlo3TKIACgkQfYAxXFc2 3nUuzQf/em+bbUF+YpAr0Lx+chlHP9ZmKWg3mY1vZwoNwogHpI/OErQIletqI5LT GMRjAOt5WUrfOCtr3QcyFu8peC9t/t2LpTvkQnkTSm9QiVzPFxFn8L44BoDeH2Er 3M8Q/hL3YDfhnRbDcKX1nKSU6n/hPu/WeWggi3h3kzNSKUvgY6WAQ5tKaNET/zbM s43W0g4uPEM+p/rnGNd3spdTMrQEh6U/EBdiHhbVLQfXF0kVUwpf4mX0veJPwyDZ 2gMY8X/2cnxSAUCWo1INJANDBzuBN8Cs6fXFq/gcQGKPgocmwpIZgFVKrmaqD+J/ vFr6DGUVbSIBX0huNzL8umFa9Y8h4Q== =fnrn -----END PGP SIGNATURE-----
--- End Message ---

