diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2019-06-29 23:44:33 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2019-06-29 23:44:33 +0000 |
commit | 918e500203bf553107068a43b0675a69e321ee3d (patch) | |
tree | fee20bec9337e6b844ba6c3260f7245df228d9de /chapter06/openssl.xml | |
parent | 09a046771f05356697bf6e4872216aa2f8b1acc5 (diff) |
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
Diffstat (limited to 'chapter06/openssl.xml')
-rw-r--r-- | chapter06/openssl.xml | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ <sect2 role="installation"> <title>Installation of OpenSSL</title> + <para>First, fix a problem identified upstream:</para> + +<screen><userinput remap="pre">sed -i '/\} data/s/ =.*$/;\n memset(\&data, 0, sizeof(data));/' \ + crypto/rand/rand_lib.c</userinput></screen> + <para>Prepare OpenSSL for compilation:</para> <screen><userinput remap="configure">./config --prefix=/usr \ |