Frank Warmerdam
75f7f78120
various fixes for tiff2pdf ( #2211 )
2010-06-13 19:25:54 +00:00
Bob Friesenhahn
e492476518
* libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
...
avoid compiler warnings if parameter types are not sign
consistent.
2010-06-12 02:55:30 +00:00
Bob Friesenhahn
af78267c3b
* libtiff 4.0.0alpha6 released.
2010-06-11 22:58:57 +00:00
Bob Friesenhahn
d30823e382
* tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
...
European page size dimensions. Added an option to allow the user
to specify a custom page size on the command line. Fix the case
where a page size specified with a fractional part was being
coerced to an integer by retyping the variables that define the
paper size.
2010-06-11 22:25:36 +00:00
Bob Friesenhahn
a6ea66c2af
* html/index.html: Update for the 3.9.3 release.
2010-06-11 22:08:01 +00:00
Bob Friesenhahn
bbf76bce0f
* tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
...
YCbCr subsampled data since tiffcp currently doesn't support it.
http://bugzilla.maptools.org/show_bug.cgi?id=2097
2010-06-11 21:23:12 +00:00
Bob Friesenhahn
5ec011cfe7
* Update libtool to version 2.2.10.
2010-06-11 20:31:38 +00:00
Bob Friesenhahn
ce4acf471d
* libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
...
multiplier is zero.
2010-06-10 22:53:11 +00:00
Bob Friesenhahn
d36017b938
* libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
...
CVE-2010-1411 was not complete.
* libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
multiply two integers. Returns zero if there is an integer
overflow.
* tools/tiffcp.c (main): tiffcp should not leak memory if an error
is reported when reading the input file.
2010-06-09 17:17:13 +00:00
Bob Friesenhahn
3adc33842b
* Update libtool to version 2.2.8.
...
* libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
buffer due to integer overflow in TIFFroundup() and several other
potential overflows. In conjunction with the fix to TIFFhowmany(),
fixes CVE-2010-1411.
* libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
result in an integer overflow. This causes TIFFroundup() to also
return zero if there would be an integer overflow.
2010-06-08 23:32:22 +00:00
Bob Friesenhahn
bfbc717684
* contrib: Add an emacs formatting mode footer to all source files
...
so that emacs can be effectively used.
2010-06-08 18:55:15 +00:00
Frank Warmerdam
13ab8a93b6
added -x switch to tiffcp to (re)number allt he pages ( #2203 )
2010-06-03 17:01:01 +00:00
Olivier Paquet
2dacef9ea0
* libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
...
to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
* libtiff/tif_dirinfo.c: Use correct set_field_type for
TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
http://bugzilla.maptools.org/show_bug.cgi?id=2192
2010-05-08 18:34:26 +00:00
Olivier Paquet
5650916c37
* libtiff/tif_dirinfo.c: Use correct set_field_type for
...
TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
http://bugzilla.maptools.org/show_bug.cgi?id=2192
2010-05-08 18:33:51 +00:00
Olivier Paquet
3f00ca3668
* libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
...
to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
http://bugzilla.maptools.org/show_bug.cgi?id=2192
2010-05-08 18:33:07 +00:00
Frank Warmerdam
8542b73911
ensure quality always set in JPEGPreEncode (gdal #3539 )
2010-05-07 18:38:46 +00:00
Andrey Kiselev
c7f2a88a9e
Regenerated from the source.
2010-05-06 10:01:02 +00:00
Olivier Paquet
5d55f189fc
* libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
...
had stopped working. Also made it always print 6 floats instead of
2*SamplesPerPixel.
http://bugzilla.maptools.org/show_bug.cgi?id=2191
http://bugzilla.maptools.org/show_bug.cgi?id=2186
* man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
2010-05-06 02:56:46 +00:00
Olivier Paquet
de8b0a300a
* libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
...
had stopped working. Also made it always print 6 floats instead of
2*SamplesPerPixel.
http://bugzilla.maptools.org/show_bug.cgi?id=2191
http://bugzilla.maptools.org/show_bug.cgi?id=2186
2010-05-06 02:56:17 +00:00
Olivier Paquet
4a62d3518d
* man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
...
fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
2010-05-06 02:54:46 +00:00
Frank Warmerdam
e3c51cb8e6
fix to use memcmp(), not memcpy() for checking jpeg tables header
2010-05-05 18:38:38 +00:00
Frank Warmerdam
80b552d22f
avoid spurious jpeg table updates
2010-04-21 20:46:17 +00:00
Olivier Paquet
117b4bd0c6
* libtiff/tif_dirinfo.c: Fixed reading of 4 pixar tags.
...
http://bugzilla.maptools.org/show_bug.cgi?id=2139
2010-04-20 15:25:29 +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
Frank Warmerdam
d85328cfc9
enable reading of very large strips in chunks (gdal #3514 )
2010-04-02 19:26:22 +00:00
Frank Warmerdam
23532025ca
use TIFFRewriteDirectory() in TIFFFlush() to migrate directories if needed
2010-03-31 06:40:10 +00:00
Frank Warmerdam
fda0494e8e
change type of dec_bitsleft to uint64 to support 256MB+ strips (gdal #3512 )
2010-03-30 17:02:57 +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
Olivier Paquet
70aaa84ae7
Added myself to COMMITTERS.
2010-03-02 21:19:56 +00:00
Lee Howard
be0df48727
Since the 3.8 days it's sp->line and not line.
2010-02-22 21:14:10 +00:00
Lee Howard
614095e3d0
* libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
...
strips.
http://bugzilla.maptools.org/show_bug.cgi?id=2029
2010-02-22 19:24:39 +00:00
Lee Howard
4d1b67f0a0
Add bugzilla link.
2010-02-22 19:15:09 +00:00
Lee Howard
d473b19b31
* libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
...
the JPEG TIFF as is is not required in order to prevent it from
being unused and filled with invalid data. (Leave it to be
generated by later activity.)
* tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
data rather than skipping them. This fixes the ability to view in
Acrobat Reader, Evince, and Ghostscript.
2010-02-22 19:10:07 +00:00
Frank Warmerdam
b31672152e
remove out of date mirror, points to download.osgeo.org instead of ftp.remotesensing.org
2009-12-04 19:00:37 +00:00
Frank Warmerdam
bbef7fb9cb
Made JPEGDecodeRaw() check for buffer overruns. Made so that when working
...
with downsampled images a stub function reporting an error is used for
tif_decoderow. We cannot meaningfully support reading scanlines in this
situation. (#1936 )
2009-12-04 01:37:57 +00:00
Frank Warmerdam
e1b49e08af
reset tif_scanlinesize after changes to upsampling ratios ( #1936 )
2009-12-04 01:21:52 +00:00
Frank Warmerdam
0e5ee26f1c
Fixed "artist" field number properly ( #2129 ).
2009-12-03 19:27:55 +00:00
Frank Warmerdam
b7b6095407
fix resource leaks on error ( #2125 )
2009-11-30 18:42:53 +00:00
Frank Warmerdam
199977b6af
Return to handling TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF
...
directory instead of as a custom(generic) field to avoid a potential
reentrancy problem (#2125 )
2009-11-30 18:19:15 +00:00
Frank Warmerdam
917274b864
Make TIFFDisplay argument in TIFFCIELabToRGBInit const, and display_sRGB static and const.
2009-11-30 12:22:26 +00:00
Bob Friesenhahn
d4038e39c5
* libtiff 4.0.0alpha5 released.
2009-11-04 17:49:25 +00:00
Bob Friesenhahn
1dc4f337d9
3.9.2 is latest stable release.
2009-11-04 17:38:13 +00:00
Bob Friesenhahn
444e4b4866
* tools/tiffcrop.c: Updated tiffcrop from Richard Nolde. This
...
version has undergone substantial testing with arbitrary sample
bit depths. Also eliminates GCC compilation warnings.
2009-11-03 15:24:27 +00:00
Bob Friesenhahn
c9d00c6c3c
Change tiffcrop parameters to -X 60 -Y 60
2009-11-02 18:30:21 +00:00
Bob Friesenhahn
2b14d5a792
* port/libport.h: Add extern declarations for getopt standard
...
globals.
2009-11-02 14:44:13 +00:00
Bob Friesenhahn
d35a21f9d2
* libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
...
noticed in 64-bit build of libtiff with Visual Studio 2005.
Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
2009-11-01 00:16:49 +00:00
Bob Friesenhahn
ffd59cba70
* libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
...
warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
Visual Studio 2005 64-bit warning in tif_pixarlog.c",
http://bugzilla.maptools.org/show_bug.cgi?id=2068
2009-10-31 23:42:27 +00:00
Bob Friesenhahn
c667654d23
* libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
...
pointer" warnings.
2009-10-29 20:04:07 +00:00
Bob Friesenhahn
0640db6d8f
Include a mailto link for Bob Friesenhahn
2009-10-28 22:28:46 +00:00
Bob Friesenhahn
e7ccb79ae3
Add a note that BigTIFF work is completed
2009-10-28 22:17:07 +00:00