diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2022-01-13 13:29:41 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2022-01-13 13:34:48 +0000 |
commit | 77a0642a5a3b07f864109e1d1b2718403e7e2ae3 (patch) | |
tree | f7abb06bf4c2009809846d887fae197a75cccd5a | |
parent | d77057eb82bc8720cfc222582dcfcdb0c2b9b5b1 (diff) | |
download | ghostpdl-77a0642a5a3b07f864109e1d1b2718403e7e2ae3.tar.gz |
Fix error code propagation from CMap reading code
Arose from oss-fuzz issue 43147, but exhibits differently, so may not be the
same issue.
-rw-r--r-- | pdf/pdf_cmap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pdf/pdf_cmap.c b/pdf/pdf_cmap.c index 718ca8a1c..c09346c76 100644 --- a/pdf/pdf_cmap.c +++ b/pdf/pdf_cmap.c @@ -845,6 +845,9 @@ pdfi_read_cmap(pdf_context *ctx, pdf_obj *cmap, pdf_cmap **pcmap) } } } + else { + goto error_out; + } return 0; error_out: |