Commit Graph

2490 Commits

Author SHA1 Message Date
Bob Friesenhahn
aacd29d141 * libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path 2011-05-31 17:05:07 +00:00
Bob Friesenhahn
d73e9e8b19 * tools/rgb2ycbcr.c (cvtRaster): unchecked malloc 2011-05-31 17:03:16 +00:00
Bob Friesenhahn
bd77483087 * libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
NULL-deref and possible overflow
2011-05-31 17:00:03 +00:00
Bob Friesenhahn
e66a15f97e * tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written" 2011-05-31 16:57:10 +00:00
Bob Friesenhahn
91b49a4539 * libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
and set of otherwise unused local, data_is_empty.
2011-05-31 16:54:15 +00:00
Bob Friesenhahn
1e2aed2807 * libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
Diagnose out-of-memory failure and return 0 rather than
dereferencing NULL.
2011-05-31 16:51:50 +00:00
Frank Warmerdam
f8a3650a7c improve error report with zero tag directories 2011-05-24 13:35:30 +00:00
Frank Warmerdam
9437f9db5a restore TIFFMergeFieldInfo (#2315) 2011-05-17 00:21:17 +00:00
Frank Warmerdam
bb96a66b1d remove use of memory.h, it is unneeded and does not exist everywhere 2011-05-08 00:44:18 +00:00
Frank Warmerdam
34b7557400 Remove obsolete field info api, add missing items in libtiff.def (#2315, #2316) 2011-04-20 15:23:38 +00:00
Bob Friesenhahn
aad61d031c Mention 4.0.0beta7. 2011-04-09 21:07:41 +00:00
Bob Friesenhahn
feab28eac4 Release v4-0-0beta7. 2011-04-09 21:01:00 +00:00
Bob Friesenhahn
898c42e698 Reference 3.9.5 release. 2011-04-09 20:21:27 +00:00
Bob Friesenhahn
959042fdcf Fix spelling typo in tiff2ps. 2011-04-09 16:53:08 +00:00
Bob Friesenhahn
b3d151d012 Fix test warnings from tiff2ps. 2011-04-09 16:52:17 +00:00
Bob Friesenhahn
c546a4ccf8 * configure.ac: Should use AC_CANONICAL_HOST since host specifies
the run-time target whereas target is used to specify the final
output target if the package is a build tool (like a compiler),
which libtiff is not.  Resolves libtiff bug 2307 "Use
AC_CANONICAL_HOST macro".
2011-04-09 15:43:03 +00:00
Bob Friesenhahn
519b727004 * configure.ac: Support configuring TIFF_INT64_FORMAT and
TIFF_UINT64_FORMAT appropriately for MinGW32.

* tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
printf conventions for 64-bit types because it uses the WIN32 CRT.

* libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
printf conventions for 64-bit types because it uses the WIN32 CRT.

* tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
understood by WIN32 CRT.
2011-04-02 20:54:08 +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
Frank Warmerdam
a9a1d1c65f Add -d and -sd switches to tiffset to allow operation on a particular
directory instead of just the first (jef)
2011-03-26 12:07:20 +00:00
Frank Warmerdam
94e26a9e89 ignore output files 2011-03-26 12:05:00 +00:00
Frank Warmerdam
0cea5839cc Correct potential buffer overflow with thunder encoded files with wrong
bitspersample set (CVE-2011-1167)
http://bugzilla.maptools.org/show_bug.cgi?id=2300
2011-03-21 16:02:27 +00:00
Frank Warmerdam
4dda1458c6 allow zero length runs at start of fax3 lines 2011-03-10 20:23:07 +00:00
Frank Warmerdam
8e9fb97983 incorporate a fix for possible fax3 decoding overflow (CVE-2011-0192) 2011-03-03 01:38:25 +00:00
Frank Warmerdam
010a264507 avoid divide by zero in degenerate case (#2296) 2011-02-23 21:57:59 +00:00
Frank Warmerdam
91479f4d42 avoid leaks if TIFFRGBAImageBegin() fails (#2295) 2011-02-23 21:46:09 +00:00
Frank Warmerdam
202ed69f77 fix rawcp/rawcc maintinance for lzma compressor 2011-02-22 21:55:13 +00:00
Bob Friesenhahn
f54758cb96 Make sure that configure timestamps are good. 2011-02-19 18:00:38 +00:00
Frank Warmerdam
c1225a030a fix for deferred strile loading 2011-02-18 22:54:48 +00:00
Frank Warmerdam
9d37e46393 fix macro set for chunky-read-support 2011-02-18 22:28:58 +00:00
Frank Warmerdam
0a3abc0fe8 fix bug with chunk read support and deferred strile loading. 2011-02-18 22:20:59 +00:00
Frank Warmerdam
661b698b0d Move _TIFFFillStriles() call down to avoid being ahead of variable
declaration.
2011-02-18 22:15:40 +00:00
Frank Warmerdam
bc3bc9925b added a configure option to enable CHUNKY_STRIP_READ support (--enable-chunky-strip-read) 2011-02-18 21:54:22 +00:00
Frank Warmerdam
82361dfa04 implement optional support for deferred strip/tile offset/size loading 2011-02-18 20:53:04 +00:00
Frank Warmerdam
29beec44d2 remove unused variable 2011-02-11 19:21:03 +00:00
Frank Warmerdam
1b73b3d840 fix buffer overrun problem with error/warning report in non-console win32 builds (popups) (#2293) 2011-02-09 18:05:00 +00:00
Olivier Paquet
addab4c8aa Added support for TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have
different values for each sample. Presents the min/max of all samples by
default for compatibility. TIFFSetField/TIFFGetField can be made to handle
those tags as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
http://www.asmail.be/msg0055458208.html
2011-01-24 21:06:31 +00:00
Frank Warmerdam
a8785bf9f4 fix tif_rawcp/rawcc handling for zip, note it is missing for pixarlog 2011-01-06 16:00:23 +00:00
Frank Warmerdam
c89c8c07c7 ensure rawcp and rawcc are maintained by JPEG decoder, improve read ahead for CHUNKY_STRIP_READ_SUPPORT 2011-01-06 05:51:13 +00:00
Lee Howard
32f670caaa Another regression fix. 2011-01-04 02:52:00 +00:00
Lee Howard
863cbb8823 * libtiff/tif_jpeg.c: Fix regression with 3 band image caused by
commit on 2010-12-14 submitted by e-mail from
        Even Rouault <even.rouault@mines-paris.org>
2011-01-04 02:38:51 +00:00
Olivier Paquet
cb413f61f5 * libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
http://bugzilla.maptools.org/show_bug.cgi?id=2266
2010-12-31 17:51:08 +00:00
Andrey Kiselev
c46a15cf97 *** empty log message *** 2010-12-23 13:39:00 +00:00
Andrey Kiselev
d499ffbfcd Added support for specifying the compression level parameter (preset) for
Deflate and LZMA encoders, e.g "-c lzma:p1" or "-c zip:p9".
2010-12-23 13:38:47 +00:00
Andrey Kiselev
73ca7bd1a5 Properly set the LZMA2 compression level (preset) in LZMAVSetField(). 2010-12-23 13:07:38 +00:00
Andrey Kiselev
9f29be434f Remove remaining CVS stuff. 2010-12-22 15:33:48 +00:00
Andrey Kiselev
c748648843 Added missed record for LZMA codec. 2010-12-22 15:30:54 +00:00
Bob Friesenhahn
9f3e08cf94 Needed to add tif_lzma.c to the Makefile. 2010-12-18 16:30:15 +00:00
Lee Howard
bf44739aea * libtiff/tif_dirread.c: tolerate some cases where
FIELD_COLORMAP is missing
        http://bugzilla.maptools.org/show_bug.cgi?id=2189
2010-12-15 01:05:02 +00:00
Lee Howard
69bb27992d * libtiff/tif_read.c: change read_ahead to tmsize_t
http://bugzilla.maptools.org/show_bug.cgi?id=2222
2010-12-15 00:43:25 +00:00
Lee Howard
ccdc78ec32 * configure.ac, libtiff/Makefile.am: Build tif_win32.c on
Windows except on Cygwin
        http://bugzilla.maptools.org/show_bug.cgi?id=2224
2010-12-15 00:37:00 +00:00