[poppler] poppler/XRef.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Aug 8 20:43:28 UTC 2017


 poppler/XRef.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cd04a81343fd5cba824a891f25c01eeffee5f906
Author: Albert Astals Cid <aacid at kde.org>
Date:   Tue Aug 8 22:42:46 2017 +0200

    Fix use of uninitialized value use
    
    Bug #102117

diff --git a/poppler/XRef.cc b/poppler/XRef.cc
index 10526017..eca2dc70 100644
--- a/poppler/XRef.cc
+++ b/poppler/XRef.cc
@@ -423,7 +423,7 @@ XRef *XRef::copy() {
   for (int i = 0; i < size; ++i) {
     xref->entries[i].offset = entries[i].offset;
     xref->entries[i].type = entries[i].type;
-    xref->entries[i].obj.setToNull();
+    xref->entries[i].obj.initNullAfterMalloc();
     xref->entries[i].flags = entries[i].flags;
     xref->entries[i].gen = entries[i].gen;
   }


More information about the poppler mailing list