Commit Graph

23 Commits

Author SHA1 Message Date
Bob Friesenhahn
defff15535 * tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource
leak".
(cpStrips): Fix Coverity 1024305 "Resource leak".
2015-05-28 13:10:26 +00:00
Bob Friesenhahn
cae87ed58a * tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
uint32 type for TIFFTAG_JPEGTABLES.  Patch by Christophe
Deroulers.
2011-10-22 17:03:00 +00:00
Lee Howard
22ea884fcd 2010-12-08 Lee Howard <faxguy@howardsilvan.com>
* libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
        or missing byte-count tag
        * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
        per http://bugzilla.maptools.org/show_bug.cgi?id=1996
2010-12-11 19:16:47 +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
46bac877c5 avoid 32/64bit casting warnings 2009-01-22 21:12:45 +00:00
Frank Warmerdam
01e6d4c022 tiffsplit.c: fix sampleformat to be shortv instead of longv 2009-01-21 04:42:10 +00:00
Andrey Kiselev
9498770c99 Use byte counts of proper size (uint64). Required for libtiff 4.0. 2008-09-05 07:06:26 +00:00
Andrey Kiselev
6ae8a4bd73 Use dynamically allocated array instead of static when constructing
output file names.
2008-09-05 06:44:32 +00:00
Andrey Kiselev
a1a53f9c74 Get rid of unsafe strcpy()/strcat() calls when doing the filename/path
construction.
2008-09-03 07:47:26 +00:00
Andrey Kiselev
1fd9c5e60b Added version reporting when running without parameters. 2005-12-06 22:18:13 +00:00
Andrey Kiselev
9640ac3133 Copy fax related fields over splitted parts as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=983
2005-10-31 12:08:17 +00:00
Andrey Kiselev
f0240f75fe Include tif_config.h. 2005-05-26 18:42:56 +00:00
Andrey Kiselev
1ca5b48653 Avoid warnings. 2005-05-25 10:35:13 +00:00
Andrey Kiselev
53fb873cc2 Check for JPEGTables tag presence before copying. 2005-05-17 14:18:48 +00:00
Andrey Kiselev
3522985c3b Unused macro removed. 2004-06-05 08:11:26 +00:00
Andrey Kiselev
73e787830f Avoid warnings. 2004-06-04 14:16:14 +00:00
Andrey Kiselev
52f0318fd1 Don't forget to copy Photometric Interpretation tag. 2004-05-25 16:02:22 +00:00
Andrey Kiselev
f23487170c Fixed problem with unproperly written multibyte files. Now output files will
be written using the same byte order flag as in the input image. See
http://bugzilla.remotesensing.org/show_bug.cgi?id=574
for details.
2004-05-20 19:20:52 +00:00
Andrey Kiselev
7a8485f2f5 Copy JPEGTables tag contents for JPEG compressed images. Reported by Artem
Mirolubov.
2004-02-26 10:14:19 +00:00
Andrey Kiselev
58117ffafa Get rid of C++ style comments. 2004-01-26 17:00:55 +00:00
Frank Warmerdam
03f0fc1b10 applied patch for to support more pages in tiffsplit 2003-07-26 03:46:08 +00:00
Frank Warmerdam
82cc2afe92 copy TIFFTAG_SAMPLEFORMAT field 2000-04-18 22:47:10 +00:00
Mike Welles
0ef31e1f62 Initial revision 1999-07-27 21:50:26 +00:00