[Libreoffice-commits] core.git: external/poppler

Stephan Bergmann sbergman at redhat.com
Tue Jun 2 09:23:28 PDT 2015


 external/poppler/ubsan.patch.0 |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit 8890e3f44d786b48deeec42288da58149f0c9703
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jun 2 18:22:56 2015 +0200

    external/poppler: -fsanitize=nonnull-attribute
    
    Change-Id: I17c825a0e24e8993503eeaf0d1136c143d990a12

diff --git a/external/poppler/ubsan.patch.0 b/external/poppler/ubsan.patch.0
index 2b0b334..623858da9 100644
--- a/external/poppler/ubsan.patch.0
+++ b/external/poppler/ubsan.patch.0
@@ -1,3 +1,14 @@
+--- goo/GooString.cc
++++ goo/GooString.cc
+@@ -161,7 +161,7 @@
+       // assert(s != s1) the roundedSize condition ensures this
+       if (newLength < length) {
+ 	memcpy(s1, s, newLength);
+-      } else {
++      } else if (length != 0) {
+ 	memcpy(s1, s, length);
+       }
+       if (s != sStatic)
 --- poppler/Stream.cc
 +++ poppler/Stream.cc
 @@ -2966,12 +2966,12 @@


More information about the Libreoffice-commits mailing list