libtiff/tools
Thomas Bernard 4f168b7368
tiffcrop: fix asan runtime error caused by integer promotion
tiffcrop.c:4027:20: runtime error: left shift of 190 by 24 places cannot be represented in type 'int'

C treats (byte << 24) as an int expression.
casting explicitely to unsigned type uint32 avoids the problem.

the same issue has been fixed elsewhere with a242136916

I detected the bug with the test file of #86
2020-02-08 13:43:35 +01:00
..
CMakeLists.txt Update CMakeLists.txt for build fix on Windows 2018-01-24 01:19:44 +00:00
fax2ps.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
fax2tiff.c fix fax2tiff 2019-02-02 15:14:54 +01:00
Makefile.am * tools/Makefile.am: The libtiff tools bmp2tiff, gif2tiff, 2016-06-05 19:53:59 +00:00
Makefile.lcc Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
Makefile.vc Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
pal2rgb.c Fix for simple memory leak that was assigned CVE-2019-6128. 2019-01-23 15:09:59 -05:00
ppm2tiff.c Fix Cmake HAVE_GETOPT for systems which declare getopt in stdio.h. 2019-11-03 11:21:26 -06:00
raw2tiff.c Fix Cmake HAVE_GETOPT for systems which declare getopt in stdio.h. 2019-11-03 11:21:26 -06:00
rgb2ycbcr.c adds a missing TIFFClose in rgb2ycbcr tool 2019-11-04 14:48:13 -05:00
thumbnail.c Fix Cmake HAVE_GETOPT for systems which declare getopt in stdio.h. 2019-11-03 11:21:26 -06:00
tiff2bw.c Eliminate compiler warnings about duplicate definitions of streq/strneq macros. 2018-11-03 09:35:19 -05:00
tiff2pdf.c Fix Cmake HAVE_GETOPT for systems which declare getopt in stdio.h. 2019-11-03 11:21:26 -06:00
tiff2ps.c tiff2ps: fix use of wrong data type that caused issues (/Height being written as 0) on 64-bit big endian platforms 2019-08-18 10:52:45 +02:00
tiff2rgba.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
tiffcmp.c Fix Cmake HAVE_GETOPT for systems which declare getopt in stdio.h. 2019-11-03 11:21:26 -06:00
tiffcp.c Fix Cmake HAVE_GETOPT for systems which declare getopt in stdio.h. 2019-11-03 11:21:26 -06:00
tiffcrop.c tiffcrop: fix asan runtime error caused by integer promotion 2020-02-08 13:43:35 +01:00
tiffdither.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
tiffdump.c Fix Cmake HAVE_GETOPT for systems which declare getopt in stdio.h. 2019-11-03 11:21:26 -06:00
tiffgt.c Fix Cmake HAVE_GETOPT for systems which declare getopt in stdio.h. 2019-11-03 11:21:26 -06:00
tiffinfo.c Fix some typos 2018-02-24 21:47:52 +01:00
tiffinfoce.c fix out-of-bound read on some tiled images. 2018-09-08 15:07:53 +08:00
tiffmedian.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
tiffset.c Add nmake build support for manually configuring the 'port' files to be 2020-01-25 14:11:05 -06:00
tiffsplit.c Fix Cmake HAVE_GETOPT for systems which declare getopt in stdio.h. 2019-11-03 11:21:26 -06:00