Blame SOURCES/libtiff-CVE-2012-3401.patch
|
|
d00bc4 |
Upstream patch for CVE-2012-3401.
|
|
|
d00bc4 |
|
|
|
d00bc4 |
|
|
|
d00bc4 |
diff -Naur tiff-3.9.4.orig/tools/tiff2pdf.c tiff-3.9.4/tools/tiff2pdf.c
|
|
|
d00bc4 |
--- tiff-3.9.4.orig/tools/tiff2pdf.c 2010-06-13 16:51:44.000000000 -0400
|
|
|
d00bc4 |
+++ tiff-3.9.4/tools/tiff2pdf.c 2012-12-11 11:17:56.506344841 -0500
|
|
|
d00bc4 |
@@ -1090,6 +1090,7 @@
|
|
|
d00bc4 |
"Can't set directory %u of input file %s",
|
|
|
d00bc4 |
i,
|
|
|
d00bc4 |
TIFFFileName(input));
|
|
|
d00bc4 |
+ t2p->t2p_error = T2P_ERR_ERROR;
|
|
|
d00bc4 |
return;
|
|
|
d00bc4 |
}
|
|
|
d00bc4 |
if(TIFFGetField(input, TIFFTAG_PAGENUMBER, &pagen, &paged)){
|
|
|
d00bc4 |
@@ -3153,6 +3154,7 @@
|
|
|
d00bc4 |
"Can't allocate %u bytes of memory for t2p_process_ojpeg_tables, %s",
|
|
|
d00bc4 |
2048,
|
|
|
d00bc4 |
TIFFFileName(input));
|
|
|
d00bc4 |
+ t2p->t2p_error = T2P_ERR_ERROR;
|
|
|
d00bc4 |
return(0);
|
|
|
d00bc4 |
}
|
|
|
d00bc4 |
_TIFFmemset(t2p->pdf_ojpegdata, 0x00, 2048);
|
|
|
d00bc4 |
@@ -5248,6 +5250,7 @@
|
|
|
d00bc4 |
TIFF2PDF_MODULE,
|
|
|
d00bc4 |
"Can't allocate %u bytes of memory for t2p_write_pdf",
|
|
|
d00bc4 |
t2p->pdf_xrefcount * sizeof(uint32) );
|
|
|
d00bc4 |
+ t2p->t2p_error = T2P_ERR_ERROR;
|
|
|
d00bc4 |
return(written);
|
|
|
d00bc4 |
}
|
|
|
d00bc4 |
t2p->pdf_xrefcount=0;
|