]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
Cherry-pick OpenSSL changeset 5be1ae2:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 17 Apr 2014 20:09:41 +0000 (20:09 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 17 Apr 2014 20:09:41 +0000 (20:09 +0000)
commit60deae8ecd6efb0fcf5af79821d4f9671a8a5625
tree2e52adb0e2f24d21ac5797218e35ca5311163722
parenteaee10186e4e5f2c70d191cb51834135e87a8d93
Cherry-pick OpenSSL changeset 5be1ae2:

====
Author: Dr. Stephen Henson <steve@openssl.org>

Treat a zero length passed to ssleay_rand_add a no op: the existing logic
zeroes the md value which is very bad. OpenSSL itself never does this
internally and the actual call doesn't make sense as it would be passing
zero bytes of entropy.

Thanks to Marcus Meissner <meissner@suse.de> for reporting this bug.
====

This is a direct commit to stable/8 and stable/9.  -HEAD and stable/10
already have this fix as part of OpenSSL 1.0.1g.

Noticed by: koobs
Reviewed by: benl (maintainer)

git-svn-id: svn://svn.freebsd.org/base/stable/8@264624 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
crypto/openssl/crypto/rand/md_rand.c