diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2022-06-22 15:48:58 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2022-06-22 15:48:58 +0100 |
commit | dd15cd3cd5495800de5ca5c8a152147b485e124f (patch) | |
tree | e76cb1622d3a084d0db4ae36a528d4b56c1922e1 /pdf/pdf_deref.c | |
parent | ab3ea1f345b3d83b6b71f19f45e5aa1e41585cbd (diff) | |
download | ghostpdl-dd15cd3cd5495800de5ca5c8a152147b485e124f.tar.gz |
OSS-fuzz #48167
This comes about because of the rework to return integers directly
instead of as pointers to objects. The object mechanism pushed the
objects onto the stack and so, on an error, popped them from the stack.
The new method doesn't use the stack, so we must not pop objects from
it! Even on error....
Diffstat (limited to 'pdf/pdf_deref.c')
-rw-r--r-- | pdf/pdf_deref.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/pdf/pdf_deref.c b/pdf/pdf_deref.c index 4872913b2..32646f5a9 100644 --- a/pdf/pdf_deref.c +++ b/pdf/pdf_deref.c @@ -699,7 +699,6 @@ static int pdfi_deref_compressed(pdf_context *ctx, uint64_t obj, uint64_t gen, p } if (i == entry->u.compressed.object_index) { if (found_object != obj) { - pdfi_pop(ctx, 1); code = gs_note_error(gs_error_undefined); goto exit; } |