diff options
author | Alex Cherepanov <alex.cherepanov@artifex.com> | 2009-03-02 06:13:02 +0000 |
---|---|---|
committer | Alex Cherepanov <alex.cherepanov@artifex.com> | 2009-03-02 06:13:02 +0000 |
commit | 792dfd7a26a1b60ae21a7db8b312194e9a227abc (patch) | |
tree | ac4ace1315d6e06082dd4e76a43af8c77bc96b0e /gs/psi/zfjbig2.c | |
parent | 4158810f8a73fddd09d6da4afe7354fe6ab8e1ac (diff) |
When /JBIG2Decode filter takes /.jbig2globalctx parameter and retains a
pointer to it, the filter must not be allocated in global memory if the
parameter is local. Bug 690308.
DIFFERENCES:
None
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9514 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/psi/zfjbig2.c')
-rw-r--r-- | gs/psi/zfjbig2.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gs/psi/zfjbig2.c b/gs/psi/zfjbig2.c index b70993a41..50bff866b 100644 --- a/gs/psi/zfjbig2.c +++ b/gs/psi/zfjbig2.c @@ -77,11 +77,8 @@ z_jbig2decode(i_ctx_t * i_ctx_p) } /* we pass npop=0, since we've no arguments left to consume */ - /* we pass 0 instead of the usual rspace(sop) which will allocate storage - for filter state from the same memory pool as the stream it's coding. - this causes no trouble because we maintain no pointers */ return filter_read(i_ctx_p, 0, &s_jbig2decode_template, - (stream_state *) & state, 0); + (stream_state *) & state, (sop ? r_space(sop) : 0)); } |