diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2006-05-26 14:09:02 +0000 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2006-05-26 14:09:02 +0000 |
commit | ef5948ad19abc090ef1879a78a29b5e0a56777ce (patch) | |
tree | a03bf3dba153cc3ffec019a2fe6c894c9ec1ca73 | |
parent | 781469e0907785d63b754de8440d3ffb54547047 (diff) |
Ignore errors when zlib streams fail on the checksum. Fixes bug 688716.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@6811 a1074d23-0009-0410-80fe-cf8c14f379e6
-rw-r--r-- | gs/src/szlibd.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gs/src/szlibd.c b/gs/src/szlibd.c index 3a89a0012..bc50828d7 100644 --- a/gs/src/szlibd.c +++ b/gs/src/szlibd.c @@ -87,6 +87,15 @@ s_zlibD_process(stream_state * st, stream_cursor_read * pr, case Z_STREAM_END: return EOFC; default: + if (!strcmp("incorrect data check", zs->msg)) + { + /* Ignore errors when zlib streams fail on the checksum. + * Adobe, Apple and xpdf don't fail on pdf:s where this happens, + * so neither should we. fixes bug 688716. + */ + errprintf("warning: ignoring zlib error: %s\n", zs->msg); + return EOFC; + } return ERRC; } } |