Petr Gajdos
94edbeabbc
tif_getimage.c: added support for _SEPARATED CMYK images. tif_getimage.c: Added support for greyscale + alpha. Added TIFFCreateCustomDirectory() and TIFFCreateEXIFDirectory() functions. tif_print.c: Lots of fixes around printing corrupt or hostile input. Improve handling of corrupt ycbcrsubsampling values. tif_unix.c: use strerror to get meaningful error messages. tif_jpeg.c: fix serious bugs in JPEGDecodeRaw(). tif_jpeg.c: Fix size overflow (zdi-can-1221,CVE-2012-1173). tiff2pdf: Defend against integer overflows while calculating required buffer sizes (CVE-2012-2113). OBS-URL: https://build.opensuse.org/package/show/graphics/tiff?expand=0&rev=45
14 lines
629 B
Diff
14 lines
629 B
Diff
Index: tiff-4.0.1/libtiff/tiffiop.h
|
|
===================================================================
|
|
--- tiff-4.0.1.orig/libtiff/tiffiop.h
|
|
+++ tiff-4.0.1/libtiff/tiffiop.h
|
|
@@ -213,7 +213,7 @@ struct tiff {
|
|
#define TIFFWriteFile(tif, buf, size) \
|
|
((*(tif)->tif_writeproc)((tif)->tif_clientdata,(buf),(size)))
|
|
#define TIFFSeekFile(tif, off, whence) \
|
|
- ((*(tif)->tif_seekproc)((tif)->tif_clientdata,(off),(whence)))
|
|
+ ((tif)->tif_seekproc?((*(tif)->tif_seekproc)((tif)->tif_clientdata,(toff_t)(off),whence)):0)
|
|
#define TIFFCloseFile(tif) \
|
|
((*(tif)->tif_closeproc)((tif)->tif_clientdata))
|
|
#define TIFFGetFileSize(tif) \
|