summaryrefslogtreecommitdiffstats
path: root/abs/core/libtiff/tiff-4.0.3-CVE-2013-4232.patch
blob: 87673d91b4b56a4ef4835bc4cd8d5b9459f4d80c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: tiff2pdf.c
===================================================================
RCS file: /cvs/maptools/cvsroot/libtiff/tools/tiff2pdf.c,v
retrieving revision 1.71
diff -u -r1.71 tiff2pdf.c
--- tiff2pdf.c	2 May 2013 14:54:08 -0000	1.71
+++ tiff2pdf.c	13 Aug 2013 04:45:40 -0000
@@ -2462,6 +2462,7 @@
 					TIFFFileName(input));
 				t2p->t2p_error = T2P_ERR_ERROR;
 			  _TIFFfree(buffer);
+                          return(0);
 			} else {
 				buffer=samplebuffer;
 				t2p->tiff_datasize *= t2p->tiff_samplesperpixel;