diff options
author | L Peter Deutsch <lpd@ghostscript.com> | 2000-11-01 22:36:13 +0000 |
---|---|---|
committer | L Peter Deutsch <lpd@ghostscript.com> | 2000-11-01 22:36:13 +0000 |
commit | eacb10b0c024ebb6baca8f6176d4b2dcc3e61cd7 (patch) | |
tree | b5bd2ec75addd400b9524f18ac7fcd0272b46abb /gs/src/srlx.h | |
parent | e6c20f5615250cbde2d197e069f668492b4aeac9 (diff) |
Fix: Decoding filters that didn't detect an EOD in the source data still
tried to look 1 byte ahead, occasionally causing obscure errors. The fix
unfortunately required adding a new architectural requirement to the
implementation of such filters. (fix from igor@artifex.com)
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@851 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/srlx.h')
-rw-r--r-- | gs/src/srlx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gs/src/srlx.h b/gs/src/srlx.h index 74579bb19..5937392e2 100644 --- a/gs/src/srlx.h +++ b/gs/src/srlx.h @@ -66,7 +66,7 @@ typedef struct stream_RLD_state_s { #define s_RLD_set_defaults_inline(ss)\ ((ss)->EndOfData = true) #define s_RLD_init_inline(ss)\ - ((ss)->copy_left = 0) + ((ss)->min_left = ((ss)->EndOfData ? 1 : 0), (ss)->copy_left = 0) extern const stream_template s_RLD_template; #endif /* srlx_INCLUDED */ |