[poppler] poppler/poppler: GfxState.cc,1.12,1.13

Albert Astals Cid aacid at kemper.freedesktop.org
Sun Jul 16 11:22:25 PDT 2006


Update of /cvs/poppler/poppler/poppler
In directory kemper:/tmp/cvs-serv30946/poppler

Modified Files:
	GfxState.cc 
Log Message:
2006-07-16  Albert Astals Cid  <aacid at kde.org>

        * poppler/GfxState.cc: Do not crash when we can not
        parse a GfxImageColorMap
        Fixes crash on pdf that can be found at



Index: GfxState.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/GfxState.cc,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- GfxState.cc	13 May 2006 16:01:57 -0000	1.12
+++ GfxState.cc	16 Jul 2006 18:22:23 -0000	1.13
@@ -3369,6 +3369,10 @@
   obj.free();
  err1:
   ok = gFalse;
+  for (k = 0; k < gfxColorMaxComps; ++k) {
+    lookup[k] = NULL;
+  }
+  byte_lookup = NULL;
 }
 
 GfxImageColorMap::GfxImageColorMap(GfxImageColorMap *colorMap) {



More information about the poppler mailing list