summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-01-13 13:29:41 +0000
committerChris Liddell <chris.liddell@artifex.com>2022-01-13 13:34:48 +0000
commit77a0642a5a3b07f864109e1d1b2718403e7e2ae3 (patch)
treef7abb06bf4c2009809846d887fae197a75cccd5a
parentd77057eb82bc8720cfc222582dcfcdb0c2b9b5b1 (diff)
downloadghostpdl-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.c3
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: