Petr Gajdos
11986f854c
* fixed integer overflow CVE-2010-4665 * fixed buffer overflow in ojpeg decoder * upstreamed: - oob-read.patch - CVE-2011-0192.patch - getimage-64bit.patch - CVE-2011-1167.patch - scanlinesize.patch OBS-URL: https://build.opensuse.org/package/show/graphics/tiff?expand=0&rev=29
14 lines
598 B
Diff
14 lines
598 B
Diff
Index: libtiff/tiffiop.h
|
|
===================================================================
|
|
--- libtiff/tiffiop.h.orig
|
|
+++ libtiff/tiffiop.h
|
|
@@ -209,7 +209,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,(toff_t)(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) \
|