[PATCH] * random/random-drbg.c (drbg_hmac_update): Don't memset if, length is zero
Werner Koch
wk at gnupg.org
Thu Jan 26 18:44:47 CET 2017
On Wed, 25 Jan 2017 22:25, kristian.fiskerstrand at sumptuouscapital.com
said:
> A zero length memset triggers __warn_memset_zero_len() in glibc, so
> only invoking memset if non-zero value
The glibc folks are starting to get as crazy as the gcc folks. Now they
want us to add complexity (an additional condition) and thus bugs to
perfectly valid code =:-)
Salam-Shalom,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: </pipermail/attachments/20170126/c1d7fdf9/attachment.sig>
More information about the Gnupg-devel
mailing list