svn rev #19906: branches/krb5-1-6/ src/lib/crypto/

tlyu@MIT.EDU tlyu at MIT.EDU
Fri Aug 31 17:38:28 EDT 2007


Commit By: tlyu
Log Message: 
ticket: 5666
version_fixed: 1.6.3

pull up r19845 from trunk

 r19845 at cathode-dark-space:  epeisach | 2007-08-20 10:50:41 -0400
 ticket: new
 subject: read_entropy_from_device on partial read will not fill buffer
 tags: pullup
 
 read_entropy_from_device() will loop in read until the desired number
 of bytes are read from the device (/dev/random, /dev/urandom).  I have
 observed that for /dev/random, if there is not enough bits available
 for reading - it will return a partial read.  The code would loop in
 this case, but never advance the location to place the new bytes -
 hence the start of the buffer would be filled again - leaving the tail
 end as stack garbage.
 
 
 




Changed Files:
_U  branches/krb5-1-6/
U   branches/krb5-1-6/src/lib/crypto/prng.c



More information about the cvs-krb5 mailing list