[Botan-devel] 1.8.1 fixes PKCS #8 memory leak, Valgrind warning, botan-config bug

Rickard Bondesson Rickard.Bondesson at iis.se
Mon Jan 26 09:28:00 EST 2009


> Great! This fix removed many warnings, but I still get a 
> warning when I want to reseed my RNG.
> 
> Output from Valgrind:

It is actually:

4 x

==15534== Use of uninitialised value of size 4
==15534==    at 0x485AB3F: Botan::AES::S(unsigned) (in /usr/local/lib/libbotan-1.8.1.so)
==15534==    by 0x4A5C2C7: Botan::ANSI_X931_RNG::reseed() (in /usr/local/lib/libbotan-1.8.1.so)
==15534==    by 0x4888393: Botan::AutoSeeded_RNG::reseed() (in /usr/local/lib/libbotan-1.8.1.so)
==15534==    by 0x47E293C: C_SeedRandom (main.cpp:2226)
==15534==    by 0x804F41F: (within /usr/bin/pkcs11-tool)
==15534==    by 0x8051679: (within /usr/bin/pkcs11-tool)
==15534==    by 0x428044F: (below main) (in /lib/tls/i686/cmov/libc-2.7.so)

4 x

==15534== Use of uninitialised value of size 4
==15534==    at 0x485BA69: Botan::AES::key_schedule(unsigned char const*, unsigned) (in /usr/local/lib/libbotan-1.8.1.so)
==15534==    by 0x4A5C2C7: Botan::ANSI_X931_RNG::reseed() (in /usr/local/lib/libbotan-1.8.1.so)
==15534==    by 0x4888393: Botan::AutoSeeded_RNG::reseed() (in /usr/local/lib/libbotan-1.8.1.so)
==15534==    by 0x47E293C: C_SeedRandom (main.cpp:2226)
==15534==    by 0x804F41F: (within /usr/bin/pkcs11-tool)
==15534==    by 0x8051679: (within /usr/bin/pkcs11-tool)
==15534==    by 0x428044F: (below main) (in /lib/tls/i686/cmov/libc-2.7.so)

multiple x

==15534== Use of uninitialised value of size 4
==15534==    at 0x485B1DA: Botan::AES::enc(unsigned char const*, unsigned char*) const (in /usr/local/lib/libbotan-1.8.1.so)
==15534==    by 0x4A5BCA2: Botan::ANSI_X931_RNG::update_buffer() (in /usr/local/lib/libbotan-1.8.1.so)
==15534==    by 0x4A5C31E: Botan::ANSI_X931_RNG::reseed() (in /usr/local/lib/libbotan-1.8.1.so)
==15534==    by 0x4888393: Botan::AutoSeeded_RNG::reseed() (in /usr/local/lib/libbotan-1.8.1.so)
==15534==    by 0x47E293C: C_SeedRandom (main.cpp:2226)
==15534==    by 0x804F41F: (within /usr/bin/pkcs11-tool)
==15534==    by 0x8051679: (within /usr/bin/pkcs11-tool)
==15534==    by 0x428044F: (below main) (in /lib/tls/i686/cmov/libc-2.7.so)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 475 bytes
Desc: not available
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20090126/b526c28a/attachment.sig>


More information about the botan-devel mailing list