Commit Graph

28 Commits

Author SHA1 Message Date
Even Rouault
abea4b2b04 * libtiff/tif_lzw.c: prevent potential null dereference of
sp->dec_codetab in LZWPreDecode (bug #2459)

* libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
to TIFFmalloc() if passed user buffer size is 0 (bug #2459)

* libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)

* libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
Coverity happier (not a bug, #2459)

* libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
(not a bug, #2459)

* tools/tiff2pdf.c: close PDF file (bug #2479)

* tools/fax2ps.c: check malloc()/realloc() result (bug #2470)

* tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)

* tools/tiffcrop.c: fix segfault if bad value passed to -Z option
(bug #2459) and add missing va_end in dump_info (#2459)

* tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
2014-11-20 16:47:21 +00:00
Bob Friesenhahn
b69a1998be * libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
* tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
it is much more portable.  Tmpfile is included in ISO/IEC
9899:1990 and the WIN32 CRT.
2011-04-02 19:30:20 +00:00
Lee Howard
630dc52808 * tools/fax2ps.c: be consistent with page-numbering
http://bugzilla.maptools.org/show_bug.cgi?id=2225
2010-12-14 03:16:45 +00:00
Lee Howard
9cf3b2cd4c * tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
http://bugzilla.maptools.org/show_bug.cgi?id=2118
2010-12-12 01:11:56 +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
bb7dca71b3 include libport.h for getopt() prototype 2009-01-22 21:50:43 +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
bc6736f91d Fixed win32 I/O functions usage as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
2006-03-21 16:37:51 +00:00
Andrey Kiselev
9ebb2b1a85 Fixed reading the input stream from stdin as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
2006-03-17 14:56:42 +00:00
Andrey Kiselev
546e7e62b7 Replace insecure mktemp() function with the tmpfile() as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=78
2005-03-03 12:48:31 +00:00
Andrey Kiselev
d9845f725c Be able to extract the first page (#0). As per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=690
2004-11-29 16:20:30 +00:00
Frank Warmerdam
f26d7e60de Added newline at end to avoid warnings. 2004-09-09 18:02:13 +00:00
Andrey Kiselev
1abc31ad68 *** empty log message *** 2004-09-02 14:36:33 +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
95242031c6 Avoid warnings. 2004-07-03 16:04:01 +00:00
Andrey Kiselev
19421d5e88 Avoid warnings. 2004-06-05 08:13:06 +00:00
Andrey Kiselev
c3fd399678 Avoid warnings. 2004-06-04 13:18:25 +00:00
Andrey Kiselev
37001a073e Avoid warnings. 2004-06-04 11:50:09 +00:00
Andrey Kiselev
8d2cb0f304 MSVC updates. 2004-04-15 10:44:32 +00:00
Andrey Kiselev
045fa685f1 Fixed possible endless loop as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=404
2003-10-03 13:09:38 +00:00
Andrey Kiselev
c26da71049 Added library version reporting to all tools. 2003-03-12 14:05:05 +00:00
Andrey Kiselev
8ae9d8798a Page size was determined in wrong way as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=239
2002-12-19 23:06:18 +00:00
Frank Warmerdam
4f4c99abfc From Helge (libtiff@oldach.net)
Here's a fix for fax2ps that corrects behaviour for non-Letter paper
sizes. It fixes two problems:

Without scaling (-S) the fax is now centered on the page size specified
with -H and/or -W. Before, fax2ps was using an obscure and practially
useless algorithm to allocate the image relative to Letter sized paper
which sometime sled to useless whitespace on the paper, while at the
same time cutting of the faxes printable area at the opposite border.

Second, scaling now preserves aspect ratio, which makes unusual faxes
(in particular short ones) print properly.
2001-03-29 01:45:43 +00:00
Frank Warmerdam
6e8bb63779 fixed swapping of width and height in BoundingBox 2000-03-28 18:22:59 +00:00
Mike Welles
c21b8b9753 ke Welles <mike@onshore.com>
* fax2ps:  Modified printruns to take uint32 instead of uint16.
	Patch courtesy of Bernt Herd <herd@herdsoft.com>

	* html:  Createdd v3.5.5.htmlCVS: Modified Files:
2000-03-27 17:05:55 +00:00
Frank Warmerdam
0c05326424 Modified to compile on Windows. 1999-08-17 03:07:43 +00:00
Mike Welles
0ef31e1f62 Initial revision 1999-07-27 21:50:26 +00:00