[Poppler-bugs] [Bug 12208] Poppler doesn't handle some 1-bit images well

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 29 07:52:32 PDT 2007


http://bugs.freedesktop.org/show_bug.cgi?id=12208





------- Comment #2 from darren.kenny at sun.com  2007-08-29 07:52 PST -------
At it's simplest this can be fixed with the following change:

diff -u ./poppler/GfxState.cc~ ./poppler/GfxState.cc
--- ./poppler/GfxState.cc~      Fri Apr  6 12:11:48 2007
+++ ./poppler/GfxState.cc       Wed Aug 29 15:46:51 2007
@@ -1119,7 +1119,8 @@
       for (j = 0; j < n; ++j) {
        if ((x = obj1.streamGetChar()) == EOF) {
          error(-1, "Bad Indexed color space (lookup table stream too short)");
-         goto err3;
+         //goto err3;
+      x = 0;
        }
        cs->lookup[i*n + j] = (Guchar)x;
       }

While I know this isn't perfect, it does render the images correctly, while
still reporting the errors.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Poppler-bugs mailing list