Control: tags -1 patch
Attached.
Description: crash in jpc_dec_decodecblks() in Nautilus thumbnailer
This patch fixes the symptom of a debian bug.
Someone with better understanding of the jasper internals will need to
provide a better patch as to why the allocation failed.
This patch make jasper gracefully exit upon reading valid JP2 file.
Author: Mathieu Malaterre <[email protected]>
Bug-Debian: https://bugs.debian.org/773512
--- jasper-1.900.1-debian1.orig/src/libjasper/jpc/jpc_t1dec.c
+++ jasper-1.900.1-debian1/src/libjasper/jpc/jpc_t1dec.c
@@ -817,6 +817,11 @@ static int dec_clnpass(jpc_dec_t *dec, r
fstripestart = jas_matrix_getref(flags, 1, 1);
dstripestart = jas_matrix_getref(data, 0, 0);
+ if( !fstripestart || !dstripestart )
+ {
+ jas_eprintf("error: failed allocation\n");
+ return -1;
+ }
for (i = 0; i < height; i += 4, fstripestart += fstripestep,
dstripestart += dstripestep) {
fvscanstart = fstripestart;