On Fri, 28 Feb 2003 11:34:20 +0100 (MET), Daniel Brahneborg via RT
wrote:

>At lines 467-469 in crypto/rand/md_rand.c is an interesting
>thing:
>
>#ifndef PURIFY
>MD_Update(&m,buf,j); /* purify complains */
>#endif
>
>That is the code that causes the problem (I just verified
>it with Valgrind).  Does it have any bad side affects to
>always skip that code?  Since both Purify and Valgrind is
>unhappy with that function call, something must be wrong
>with it.

        Purify and Valgrind flag this line because its behaviour is
unpredictable. But since it's part of a random number generator,
predictability is not important. Purify/Valgrind assume you want your
code to behave in a predictable way -- usually a correct assumption
just not in this case.

--
David Schwartz
<[EMAIL PROTECTED]>


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to