File tiff-4.0.3-CVE-2013-4232.patch of Package tiff

Index: tiff2pdf.c
===================================================================
RCS file: /cvs/maptools/cvsroot/libtiff/tools/tiff2pdf.c,v
retrieving revision 1.71
diff -u -r1.71 tiff2pdf.c
--- tools/tiff2pdf.c	2 May 2013 14:54:08 -0000	1.71
+++ toolstiff2pdf.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;

openSUSE Build Service is sponsored by