From 918e500203bf553107068a43b0675a69e321ee3d Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 29 Jun 2019 23:44:33 +0000 Subject: [PATCH] Properly initialize a data structure in OpenSSL to avoid valgrind uninitialized value errors. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11627 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 5 +++++ chapter06/openssl.xml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 1b0bd8f69..7afd3f475 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -57,6 +57,11 @@ 2019-06-16 + + [bdubbs] - Properly initialize a data structure in + OpenSSL to avoid valgrind uninitialized value errors. Fixes + #4491. + [bdubbs] - Update to meson-0.51.0. Fixes #4483. diff --git a/chapter06/openssl.xml b/chapter06/openssl.xml index 34e4ade29..0bb65387a 100644 --- a/chapter06/openssl.xml +++ b/chapter06/openssl.xml @@ -43,6 +43,11 @@ Installation of OpenSSL + First, fix a problem identified upstream: + +sed -i '/\} data/s/ =.*$/;\n memset(\&data, 0, sizeof(data));/' \ + crypto/rand/rand_lib.c + Prepare OpenSSL for compilation: ./config --prefix=/usr \