7068726bc8
- Update to version 4.6.0: * API/ABI breaks: none * WebP decoder: validate WebP blob width, height, band count against TIFF parameters to avoid use of uninitialized variable, or decoding corrupted content without explicit error (fixes issue #581, issue #582). * WebP codec: turn exact mode when creating lossless files to avoid altering R,G,B values in areas where alpha=0 * Fix TransferFunction writing of only two transfer functions. * TIFFReadDirectoryCheckOrder: avoid integer overflow. When it occurs, it should be harmless in practice though * tiffcp: remove -i option (ignore errors) * This version removes a big number of utilities that have suffered from lack of maintenance over the years and were the source of various reported security issues: + fax2ps + fax2tiff + pal2rgb + ppm2tiff + raw2tiff + rgb2ycbcr + thumbnail + tiff2bw + tiff2rgba + tiffcmp + tiffcrop + tiffdither + tiffgt + tiffmedian + tiff2ps + tiff2pdf OBS-URL: https://build.opensuse.org/request/show/1111454 OBS-URL: https://build.opensuse.org/package/show/graphics/tiff?expand=0&rev=172
14 lines
855 B
Diff
14 lines
855 B
Diff
Index: tiff-4.6.0/libtiff/tiffiop.h
|
|
===================================================================
|
|
--- tiff-4.6.0.orig/libtiff/tiffiop.h
|
|
+++ tiff-4.6.0/libtiff/tiffiop.h
|
|
@@ -256,7 +256,7 @@ struct TIFFOpenOptions
|
|
#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) ((*(tif)->tif_sizeproc)((tif)->tif_clientdata))
|
|
#define TIFFMapFileContents(tif, paddr, psize) \
|