From f8acbaef4d4e5278f224518d6da160b291efb774 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Tue, 16 Nov 2010 12:58:23 +0000 Subject: [PATCH] Correct parsing of linearization table Fixes bug #31627. --- poppler/Linearization.cc | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/poppler/Linearization.cc b/poppler/Linearization.cc index 3bde57a..73dc5ad 100644 --- a/poppler/Linearization.cc +++ b/poppler/Linearization.cc @@ -19,7 +19,7 @@ Linearization::Linearization (BaseStream *str) { Parser *parser; - Object obj1, obj2, obj3, obj4, obj5; + Object obj1, obj2, obj3, obj5; linDict.initNull(); @@ -32,7 +32,6 @@ Linearization::Linearization (BaseStream *str) parser->getObj(&obj2); parser->getObj(&obj3); parser->getObj(&linDict); - parser->getObj(&obj4); if (obj1.isInt() && obj2.isInt() && obj3.isCmd("obj") && linDict.isDict()) { linDict.dictLookup("Linearized", &obj5); if (!(obj5.isNum() && obj5.getNum() > 0)) { @@ -41,7 +40,6 @@ Linearization::Linearization (BaseStream *str) } obj5.free(); } - obj4.free(); obj3.free(); obj2.free(); obj1.free(); -- 1.7.1