Module Name: src Committed By: apb Date: Thu Mar 27 16:26:22 UTC 2014
Modified Files: src/crypto/external/bsd/openssl/lib/libcrypto: rnd_keys.c Log Message: sizeof(array - 1) decays to sizeof(pointer), but (sizeof(array) - 1) was actually wanted. The effect of this bug is that only a few bytes of the hostname are mixed into the random seed, instead of using the entire hostname. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 \ src/crypto/external/bsd/openssl/lib/libcrypto/rnd_keys.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/external/bsd/openssl/lib/libcrypto/rnd_keys.c diff -u src/crypto/external/bsd/openssl/lib/libcrypto/rnd_keys.c:1.1 src/crypto/external/bsd/openssl/lib/libcrypto/rnd_keys.c:1.2 --- src/crypto/external/bsd/openssl/lib/libcrypto/rnd_keys.c:1.1 Sun Jul 19 23:30:44 2009 +++ src/crypto/external/bsd/openssl/lib/libcrypto/rnd_keys.c Thu Mar 27 16:26:22 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: rnd_keys.c,v 1.1 2009/07/19 23:30:44 christos Exp $ */ +/* $NetBSD: rnd_keys.c,v 1.2 2014/03/27 16:26:22 apb Exp $ */ #include "des_locl.h" #include <sys/time.h> @@ -72,7 +72,7 @@ des_init_random_number_generator(des_cbl SHA1Init(&sha); - gethostname(hname, sizeof(hname - 1)); + gethostname(hname, sizeof(hname) - 1); gettimeofday(&when, NULL); memcpy(&seed_q, seed, sizeof(seed_q));