is it initialized

Andrew Bartlett abartlet at samba.org
Tue Sep 18 02:46:53 GMT 2007


On Fri, 2007-09-14 at 00:01 +0300, Yakov Lerner wrote:
> Array md4_buf[] is used uninitialized in line 194 lib/genrand.c
> for all I can see (function generate_random_buffer()) .
> 
> I can see possibility why this can be intentional () (... in order
> to increase  entropy of the generated output ? ... but this still
> looks weird .. no explanatory comment ... )
> 
> Is this indeed intentional ?

Yes.  I'm sure I've seen a comment above this on some versions.   It is
the kind of thing that causes valgrind no end of fun, but fortunately on
linux, we use /dev/urandom.

Andrew Bartlett

-- 
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20070918/fbdf630c/attachment.bin


More information about the samba-technical mailing list