Petr Gajdos
75ab37b55f
* integer-overflow.patch * NULL-deref.patch - fixes CVE-2010-2067 OBS-URL: https://build.opensuse.org/package/show/graphics/tiff?expand=0&rev=21
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) \
|