[poppler] poppler/XRef.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Jan 8 22:29:26 UTC 2018


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

New commits:
commit dea6e03352084361e7c89cff7adaa53110c4e91a
Author: Albert Astals Cid <aacid at kde.org>
Date:   Mon Jan 8 23:25:39 2018 +0100

    Fix new Object API porting bug
    
    When doing the XRef::readXRefTable workaround of moving entries[1] to
    entries[0] set the entries[1] object back to null
    
    Bug #104517

diff --git a/poppler/XRef.cc b/poppler/XRef.cc
index 162ee73a..3decd23c 100644
--- a/poppler/XRef.cc
+++ b/poppler/XRef.cc
@@ -627,6 +627,7 @@ GBool XRef::readXRefTable(Parser *parser, Goffset *pos, std::vector<Goffset> *fo
 	  entries[0].obj = std::move(entries[1].obj);
 
 	  entries[1].offset = -1;
+	  entries[1].obj.setToNull();
 	}
       }
     }


More information about the poppler mailing list