Commit Graph

26 Commits

Author SHA1 Message Date
Bob Friesenhahn
d21d2b3057 * libtiff/tif_config.vc.h: Make adjustments to match the new
definitions that configure produces, including for WIN64.  Still
needs to be tested.

'lld' is not assured by the run-time DLLs and so GCC warns.
Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition
and printf format specifier to deal with printing values of
'size_t' type.  In particular, this was necessary for WIN64.
Added a configure test for if the system headers provide 'optarg'
(normal case) and block out the many explicit 'extern' statements
in the utilities.  This was found to be necessary under Windows
when getopt is in a DLL and the symbols are already imported with
dllimport via standard header files.
2015-06-21 01:09:09 +00:00
Bob Friesenhahn
b22be0db67 * tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value
as argument".
(main): Fix Coverity 1024678 "Unchecked return value from
library".
(main): Fix Coverity 1024679 "Unchecked return value from
library".
(main): Fix Coverity 1214160 "Ignoring number of bytes read".
2015-05-29 02:37:56 +00:00
Even Rouault
89bef1935b Fix various crasher bugs on fuzzed images.
* libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
the directory
* libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
TransferFunction if BitsPerSample has not yet been read, otherwise reading
it later will cause user code to crash if BitsPerSample > 1
* libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
* libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
instead of imagewidth to avoid crash
* tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
* tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
* tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
* tools/tiffdump.c: fix crash due to overflow of entry count.
2014-12-21 15:15:31 +00:00
Bob Friesenhahn
4e0d97f83c * libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
that it is clearly a memory allocation error message, and also
includes the size of the allocation request.
2010-03-10 18:56:48 +00:00
Frank Warmerdam
3db9feb595 introduce libport.h prototypes to reduce warnings 2009-01-22 20:53:07 +00:00
Frank Warmerdam
41feaacb78 Fix 64-bit warnings when compiling under MSVC 2005 (x64). 2008-01-01 15:49:00 +00:00
Andrey Kiselev
b90b47e6f7 libtiff 3.8.2 released. 2006-03-23 14:54:00 +00:00
Andrey Kiselev
d4438d6fd4 Added ability to create multipage TIFFs from the list of input files as per
bug: http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
2006-02-15 13:12:30 +00:00
Frank Warmerdam
4cef528582 fixed last jpeg processing patch 2006-01-11 17:03:43 +00:00
Frank Warmerdam
3949657664 fix jpeg tool option processing: bug 1025 2006-01-11 16:59:35 +00:00
Bob Friesenhahn
b3f4f82894 * tools/bmp2tiff.c (main): Fixed warning regarding returning
inconsistent types from a condition.
2005-12-29 00:33:51 +00:00
Bob Friesenhahn
0bb0df6024 * tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
format.
* tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
2005-12-29 00:15:56 +00:00
Andrey Kiselev
7a09fc0735 Typo fixed. 2005-10-31 13:31:10 +00:00
Andrey Kiselev
85c3925771 Fixed possible integer overflow error as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=965
2005-10-31 12:59:30 +00:00
Andrey Kiselev
c575a7fbf6 Avoid warnings. 2004-10-30 10:34:12 +00:00
Andrey Kiselev
182977f9dd Get rid of stream I/O functions. 2004-10-28 14:30:17 +00:00
Andrey Kiselev
9c94241dae Fixes in help message. 2004-10-15 07:50:15 +00:00
Andrey Kiselev
0244fc4839 Check the space allocation results. 2004-10-10 12:33:18 +00:00
Andrey Kiselev
77e3c70670 Avoid warnings. 2004-09-21 12:16:51 +00:00
Andrey Kiselev
b7d0571dc7 Avoid warnings. 2004-09-03 07:55:34 +00:00
Andrey Kiselev
3446c24799 Work out getopt problems. 2004-08-25 18:34:55 +00:00
Andrey Kiselev
532d2ad4a7 config.h.in and config.h.vc files renamed in the tif_config.h.in and
tif_config.h.vc.
2004-08-01 10:35:02 +00:00
Andrey Kiselev
c79429f4fe Removed message about LZW patents. 2004-07-24 19:03:16 +00:00
Andrey Kiselev
95242031c6 Avoid warnings. 2004-07-03 16:04:01 +00:00
Andrey Kiselev
1b6abaacc6 Add missed RawsPerStrip setting. 2004-06-14 15:10:10 +00:00
Andrey Kiselev
e31354c76d bmp2tiff utility added. 2004-06-08 15:54:12 +00:00