diff options
author | Albert Astals Cid <aacid@kde.org> | 2007-09-02 17:02:55 +0000 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2007-09-02 17:02:55 +0000 |
commit | 289e3893cda45055951bb8d3b82a45644bc0b6c6 (patch) | |
tree | db9a860c37325571b54794d79f6d880187955c00 /poppler/GfxState.cc | |
parent | 6f6c2180aca2e26ea0e3c2f21f11bc8f457c19c0 (diff) |
* poppler/GfxState.cc: Pad zeroes instead of aborting when rendering
1-bit images and the stream is "too short" to mimic Acroread and
ghostscript behaviour. Patch by <darren.kenny@sun.com>. Fixes #12208
Diffstat (limited to 'poppler/GfxState.cc')
-rw-r--r-- | poppler/GfxState.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc index 0477c24b..18bd3638 100644 --- a/poppler/GfxState.cc +++ b/poppler/GfxState.cc @@ -1118,8 +1118,8 @@ GfxColorSpace *GfxIndexedColorSpace::parse(Array *arr) { for (i = 0; i <= indexHighA; ++i) { for (j = 0; j < n; ++j) { if ((x = obj1.streamGetChar()) == EOF) { - error(-1, "Bad Indexed color space (lookup table stream too short)"); - goto err3; + error(-1, "Bad Indexed color space (lookup table stream too short) padding with zeroes"); + x = 0; } cs->lookup[i*n + j] = (Guchar)x; } |