aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2019-06-29 23:44:33 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2019-06-29 23:44:33 +0000
commit918e500203bf553107068a43b0675a69e321ee3d (patch)
treefee20bec9337e6b844ba6c3260f7245df228d9de
parent09a046771f05356697bf6e4872216aa2f8b1acc5 (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
-rw-r--r--chapter01/changelog.xml5
-rw-r--r--chapter06/openssl.xml5
2 files changed, 10 insertions, 0 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 1b0bd8f69..7afd3f475 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -58,6 +58,11 @@
<para>2019-06-16</para>
<itemizedlist>
<listitem>
+ <para>[bdubbs] - Properly initialize a data structure in
+ OpenSSL to avoid valgrind uninitialized value errors. Fixes
+ <ulink url="&lfs-ticket-root;4491">#4491</ulink>.</para>
+ </listitem>
+ <listitem>
<para>[bdubbs] - Update to meson-0.51.0. Fixes
<ulink url="&lfs-ticket-root;4483">#4483</ulink>.</para>
</listitem>
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(\&amp;data, 0, sizeof(data));/' \
+ crypto/rand/rand_lib.c</userinput></screen>
+
<para>Prepare OpenSSL for compilation:</para>
<screen><userinput remap="configure">./config --prefix=/usr \