diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2019-05-27 19:00:06 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2019-05-28 16:08:14 +0100 |
commit | 1a344ed8506e46e77a0c58aed57de69ce8f54a20 (patch) | |
tree | 176867d136c46d1adbd8c0fcdb8cb0212be17fb3 /base/scfd.c | |
parent | c1739dcc6a8ceda1a5091c1b7dc8bb4870c6c76b (diff) | |
download | ghostpdl-1a344ed8506e46e77a0c58aed57de69ce8f54a20.tar.gz |
Bug 701083: Add key to treat errors as end of data when decoding images.
This specifically only applies to the CCITT decode filter at the
moment, but the key will be in place for all image decoders to look
at if required.
A following commit will cause the PDF interpreter to set this key
in the DecodeParms.
Diffstat (limited to 'base/scfd.c')
-rw-r--r-- | base/scfd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/scfd.c b/base/scfd.c index c58f2b580..00a742050 100644 --- a/base/scfd.c +++ b/base/scfd.c @@ -469,6 +469,8 @@ ck_eol: out:ss->k_left = k_left; ss->rows_left = rows_left; ss->eol_count = eol_count; + if (ss->ErrsAsEOD && status < 0) + return EOFC; return status; } |