소스 검색

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

Bruce Dubbs 4 년 전
부모
커밋
918e500203
2개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      chapter01/changelog.xml
  2. 5 0
      chapter06/openssl.xml

+ 5 - 0
chapter01/changelog.xml

@@ -57,6 +57,11 @@
     <listitem>
       <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>

+ 5 - 0
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         \