From: Crispin F. <cr...@th...> - 2003-05-23 17:18:30
|
On Fri, 2003-05-23 at 17:57, Steve G wrote: > >This is a known problem in openssl. It uses uninitialzed > >data to generate random numbers. > > Right, but is that a transferable property? I think this is > something different. The call chain I posted is the > RC4_key_set call. Valgrind keeps track of which bytes (bits?) of memory are initialised and complains when you use them (system call, conditional jump etc). I suggest you read the stuff about the memcheck skin at: http://devel-home.kde.org/~sewardj/docs-1.9.5/mc_main.html#errormsgs which explains when the error messages are printed (hint, you can copy bogus data around all you want) As an aside, you can fix the problem by adding a call to VALGRIND_MAKE_READABLE( ptr, len ) after the call to RAND_Bytes and your errors will go away. Crispin |