Commit Graph

19 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
Tom Lane
800527edd2 Improve previous patch for CVE-2012-4564. 2012-12-10 18:19:11 +00:00
Frank Warmerdam
37671b36b9 fix zero size buffer exploit (CVE-2012-4564) in ppm2tiff 2012-11-02 05:13:24 +00:00
Bob Friesenhahn
9319bd574a * libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
when the tag count value is zero.  Error handling is still a
regression since in 3.9.2, empty tags are skipped (with a warning)
rather than returning a hard error and refusing to read the file.

* tools/ppm2tiff.c (main): While case for parsing comment line
requires extra parenthesis to work as expected.  Reported by
Thomas Sinclair.
2010-04-10 19:22:34 +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
Andrey Kiselev
550cfd7a32 Properly set the binary mode for stdin stream as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
2006-04-20 12:36:23 +00:00
Andrey Kiselev
71818ed599 Added support for PBM files as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
2006-03-01 10:41:24 +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
Andrey Kiselev
db6a96056d Fixed format string when read PPM file header with the fscanf() function. As
per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=861
2005-05-25 13:36:56 +00:00
Andrey Kiselev
2ed2911af2 Avoid warnings. 2004-09-21 12:36:02 +00:00
Andrey Kiselev
8ae15719de Avoid warnings. 2004-09-02 14:51:04 +00:00
Andrey Kiselev
ac3f89b460 PPM header parser improved: now able to skip comments. 2003-05-05 10:40:04 +00:00
Andrey Kiselev
c26da71049 Added library version reporting to all tools. 2003-03-12 14:05:05 +00:00
Andrey Kiselev
210eb932ec Fixed problem with too many arguments. 2003-02-06 22:05:47 +00:00
Mike Welles
c38ac53b1d Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
Altered descriptions in tools to reflect "by default" lzw not supported

Updated index.html to note lzw compression kit.
1999-12-27 17:35:01 +00:00
Mike Welles
da558ffbe4 * Aadded Pixar tag support.
Contributed by Phil Beffery <phil@pixar.com>
	* Made one more change to tif_dir.c for removal of LZW compression.
	  Also added notice when LZW compression invoked.
	* Changed default compression in tools to TIFF_PACKBITS, and changed
	  usage description in tools to reflect removal of LZW compression
1999-12-21 17:03:03 +00:00
Mike Welles
0ef31e1f62 Initial revision 1999-07-27 21:50:26 +00:00