[poppler] poppler/Linearization.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Fri Nov 19 15:46:24 PST 2010


 poppler/Linearization.cc |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 255f84927a649d980f047fe755c9c308535a3779
Author: Hib Eris <hib at hiberis.nl>
Date:   Fri Nov 19 23:45:33 2010 +0000

    Correct parsing of linearization table
    
    Fixes bug #31627

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();


More information about the poppler mailing list