Patch: set value of static variables in cipher/random.c

haypo at inl.fr haypo at inl.fr
Fri Jul 7 17:10:45 CEST 2006


Hi,

I'm not sure, but I think that a static variable have "undefined value".
So I don't understand how the code is working without value initialization
:-)

That's why I set some variables values. Here is the patch for random.c

Most important point is the variable "is_initialized": if is_initialized
is different than zero, I think that random things are never cleany
initialized.

Haypo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcrypt_random_static.patch
Type: text/x-diff
Size: 1368 bytes
Desc: not available
Url : /pipermail/attachments/20060707/3445836b/gcrypt_random_static.bin


More information about the Gcrypt-devel mailing list