diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2021-10-18 15:16:14 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2021-10-20 14:50:01 +0100 |
commit | 7ce8480e9bc7e496af694f00c62dfd5d1eb6837c (patch) | |
tree | 1d48fc7dd5425d9a90ed2c8bd3594e82deef940e /base/gxclrast.c | |
parent | fe784b3dbb50951db79011ae8b48ba49c4571c51 (diff) | |
download | ghostpdl-7ce8480e9bc7e496af694f00c62dfd5d1eb6837c.tar.gz |
WIP: Tweak clist buffer pointer test.
Diffstat (limited to 'base/gxclrast.c')
-rw-r--r-- | base/gxclrast.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gxclrast.c b/base/gxclrast.c index 26211e7aa..17bcca2b5 100644 --- a/base/gxclrast.c +++ b/base/gxclrast.c @@ -160,8 +160,8 @@ top_up_cbuf(command_buf_t *pcb, const byte **pcbp) stream_state *st = pcb->s->state; # endif - if (pcb->end - cbp >= pcb->size) { - errprintf(pcb->s->memory, "Clist I/O error: cbp past end of buffer\n"); + if (cbp < pcb->data || cbp > pcb->end) { + errprintf(pcb->s->memory, "Clist I/O error: cbp outside of buffer\n"); return (gs_error_ioerror); } |