summaryrefslogtreecommitdiffstats
path: root/patches/openssl-1.0.2h/0007-valgrind.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/openssl-1.0.2h/0007-valgrind.patch')
-rw-r--r--patches/openssl-1.0.2h/0007-valgrind.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/patches/openssl-1.0.2h/0007-valgrind.patch b/patches/openssl-1.0.2h/0007-valgrind.patch
new file mode 100644
index 000000000..119d78a52
--- /dev/null
+++ b/patches/openssl-1.0.2h/0007-valgrind.patch
@@ -0,0 +1,31 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Wed, 4 May 2016 09:27:51 +0200
+Subject: [PATCH] valgrind
+
+Imported from openssl_1.0.2h-1.debian.tar.xz
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ crypto/rand/md_rand.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c
+index 5c13d57765b0..9e0064e79083 100644
+--- a/crypto/rand/md_rand.c
++++ b/crypto/rand/md_rand.c
+@@ -480,6 +480,7 @@ int ssleay_rand_bytes(unsigned char *buf, int num, int pseudo, int lock)
+ MD_Update(&m, (unsigned char *)&(md_c[0]), sizeof(md_c));
+
+ #ifndef PURIFY /* purify complains */
++#if 0
+ /*
+ * The following line uses the supplied buffer as a small source of
+ * entropy: since this buffer is often uninitialised it may cause
+@@ -489,6 +490,7 @@ int ssleay_rand_bytes(unsigned char *buf, int num, int pseudo, int lock)
+ */
+ MD_Update(&m, buf, j);
+ #endif
++#endif
+
+ k = (st_idx + MD_DIGEST_LENGTH / 2) - st_num;
+ if (k > 0) {