[Freeipa-devel] [PATCHES] [bind-dyndb-ldap] Two patches for minor Coverity issues

Stephen Gallagher sgallagh at redhat.com
Tue Jan 4 20:41:12 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Patch 0001: Fix missing varargs cleanup

The CHECK() macro may cause execution to skip down to the cleanup
tag. If this happens, it would mean that we never called va_end()
on "backup".

This patch reorganizes the code slightly to ensure that va_end()
is always called.


Patch 0002: Fix potential out-of-bounds write

If there are exactly LD_MAX_SPLITS entries resulting from this
split, the mandatory trailing NULL entry will be written to one
entry past the end of the static arrayof LD_MAX_SPLITS size.


- -- 
Stephen Gallagher
RHCE 804006346421761

Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk0jhegACgkQeiVVYja6o6PGlwCgnO1jSmW1VhO3kJh3C818655M
DaEAoK5b0f4VLiRkkKgMaJnGrjRoHv9+
=XJeu
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-missing-varargs-cleanup.patch
Type: text/x-patch
Size: 1063 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20110104/b294f17b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-potential-out-of-bounds-write.patch
Type: text/x-patch
Size: 1032 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20110104/b294f17b/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-missing-varargs-cleanup.patch.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20110104/b294f17b/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-potential-out-of-bounds-write.patch.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20110104/b294f17b/attachment-0001.sig>


More information about the Freeipa-devel mailing list