ref: 37a6758bad72796bfa2422fdb951608850b994c9
parent: 57a4ce1d8e2f01a9c9229d6c7a38e2ce6b3caefe
author: Sebastian Rasmussen <sebras@gmail.com>
date: Sun Jul 1 09:07:19 EDT 2018
jbig2dec: Attempting to compose NULL on a page is silently accepted.
--- a/jbig2_image.c
+++ b/jbig2_image.c
@@ -256,6 +256,9 @@
uint8_t *d, *dd;
uint8_t mask, rightmask;
+ if (src == NULL)
+ return 0;
+
if (op != JBIG2_COMPOSE_OR) {
/* hand off the the general routine */
return jbig2_image_compose_unopt(ctx, dst, src, x, y, op);