File jasper-CVE-2018-19539.patch of Package jasper.18194

Index: jasper-1.900.14/src/libjasper/base/jas_image.c
===================================================================
--- jasper-1.900.14.orig/src/libjasper/base/jas_image.c
+++ jasper-1.900.14/src/libjasper/base/jas_image.c
@@ -451,6 +451,10 @@ int jas_image_readcmpt(jas_image_t *imag
 		return -1;
 	}
 
+	if(data == NULL) {
+		return -1;
+	}
+
 	if (!jas_matrix_numrows(data) || !jas_matrix_numcols(data)) {
 		return -1;
 	}
openSUSE Build Service is sponsored by