[poppler] poppler/Hints.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Nov 20 10:09:19 PST 2010


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

New commits:
commit 1cb3d5d94a1d89ccded96d977bcabfbe438fb81f
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Nov 20 18:08:45 2010 +0000

    fix the memset
    
    Fixes crash in broken pdf

diff --git a/poppler/Hints.cc b/poppler/Hints.cc
index 3784541..7ea9c7b 100644
--- a/poppler/Hints.cc
+++ b/poppler/Hints.cc
@@ -60,7 +60,7 @@ Hints::Hints(BaseStream *str, Linearization *linearization, XRef *xref, Security
     nPages = 0;
   }
 
-  memset(numSharedObject, 0, nPages);
+  memset(numSharedObject, 0, nPages * sizeof(Guint));
 
   nSharedGroups = 0;
   groupLength = NULL;


More information about the poppler mailing list