[poppler] Branch 'poppler-0.22' - poppler/Hints.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Fri May 17 14:03:02 PDT 2013


 poppler/Hints.cc |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 6a98b56f6ded957477ddcccd4ff849a870020395
Author: Albert Astals Cid <aacid at kde.org>
Date:   Fri May 17 23:01:20 2013 +0200

    Make an invalid nSharedGroupsFirst a real error
    
    Instead trying to recover
    Fixes bug #46703

diff --git a/poppler/Hints.cc b/poppler/Hints.cc
index 13bcc90..2204932 100644
--- a/poppler/Hints.cc
+++ b/poppler/Hints.cc
@@ -5,7 +5,7 @@
 // This file is licensed under the GPLv2 or later
 //
 // Copyright 2010, 2012 Hib Eris <hib at hiberis.nl>
-// Copyright 2010, 2011 Albert Astals Cid <aacid at kde.org>
+// Copyright 2010, 2011, 2013 Albert Astals Cid <aacid at kde.org>
 // Copyright 2010 Pino Toscano <pino at kde.org>
 //
 //========================================================================
@@ -282,7 +282,8 @@ void Hints::readSharedObjectsTable(Stream *str)
   }
   if ((!nSharedGroupsFirst) || (nSharedGroupsFirst > nSharedGroups)) {
      error(errSyntaxWarning, -1, "Invalid number of first page shared object groups");
-     nSharedGroupsFirst = nSharedGroups;
+     nSharedGroups = 0;
+     return;
   }
 
   groupLength = (Guint *) gmallocn_checkoverflow(nSharedGroups, sizeof(Guint));


More information about the poppler mailing list