Commit Graph

2514 Commits

Author SHA1 Message Date
Lee Howard
50db65b3a9 From SUSE SRPM:
- fixed crash while using libjpeg7 and higher
  * dont-fancy-upsampling.patch
2010-12-06 18:05:56 +00:00
Lee Howard
709e93ded0 Fix mode check before opening a file.
http://bugzilla.maptools.org/show_bug.cgi?id=1906
2010-12-06 16:54:54 +00:00
Lee Howard
b3c5153919 If it doesn't fail, then it succeeds. 2010-11-28 15:35:12 +00:00
Bob Friesenhahn
faf5f3ebae * libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
Patch by Vincent Torri.
2010-11-27 20:54:51 +00:00
Lee Howard
01ff8dfe99 More improvements from Richard Nolde. 2010-11-26 23:26:46 +00:00
Frank Warmerdam
756ab12a5e various fixes for win32 porting 2010-10-21 19:07:32 +00:00
Lee Howard
4536beaed1 See: http://bugzilla.maptools.org/show_bug.cgi?id=1983
* tools/tiff2ps.c: improvements and enhancements from Richard Nolde
        with additional command line options for Document Title,
        Document Creator, and Page Orientation
2010-09-26 05:39:31 +00:00
Bob Friesenhahn
28d10ec5bd * tools/tiffcrop.c: Patch from Richard Nolde to avoid a
potentially unterminated buffer due to using an exceptionally long
file name.
2010-07-13 15:51:37 +00:00
Andrey Kiselev
548b403d10 Fixed ID buffer filling in t2p_write_pdf_trailer(), thanks to Dmitry V. Levin. 2010-07-08 09:37:52 +00:00
Andrey Kiselev
9969e64b8f Really reset the tag count in CheckDirCount() to expected value as the warning
message suggests. As per bug http://bugzilla.maptools.org/show_bug.cgi?id=1963
2010-07-07 15:13:57 +00:00
Andrey Kiselev
897e7e9491 Properly handle TIFFTAG_PAGENUMBER, TIFFTAG_HALFTONEHINTS,
TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE which should be set by value.
2010-07-06 14:30:38 +00:00
Andrey Kiselev
1cf8becfc2 Don't use assertions in _TIFFFieldWithTag() and _TIFFFieldWithName() if the
tag is not found in the tag table. This should be normal situation and
returned NULL value should be properly handled by the caller.
2010-07-06 14:16:05 +00:00
Andrey Kiselev
2a34d038af Avoid wrong math du to the signed/unsigned integer type conversions. As per
bug http://bugzilla.maptools.org/show_bug.cgi?id=2207
2010-07-02 13:39:10 +00:00
Andrey Kiselev
a32e672131 Fix the count for WhitePoint tag as per bug
http://bugzilla.maptools.org/show_bug.cgi?id=2042
2010-07-02 12:02:56 +00:00
Andrey Kiselev
004e0bab6d Tiny formatting fixes to improve code navigation. 2010-07-02 11:06:29 +00:00
Andrey Kiselev
35f7b45fa3 *** empty log message *** 2010-07-02 10:02:19 +00:00
Andrey Kiselev
b3395bf1f1 *** empty log message *** 2010-07-02 09:48:25 +00:00
Andrey Kiselev
0cd06f1134 *** empty log message *** 2010-07-01 15:56:56 +00:00
Andrey Kiselev
ec2b508f60 *** empty log message *** 2010-07-01 15:33:28 +00:00
Andrey Kiselev
5122fdb3e0 *** empty log message *** 2010-06-30 16:04:50 +00:00
Andrey Kiselev
5a48f5167f *** empty log message *** 2010-06-30 15:41:49 +00:00
Andrey Kiselev
f4eff24f63 *** empty log message *** 2010-06-30 14:12:03 +00:00
Andrey Kiselev
aa50cfd0aa *** empty log message *** 2010-06-25 12:24:13 +00:00
Bob Friesenhahn
e3538640b6 C files should not use C++ style comments. 2010-06-21 19:09:26 +00:00
Bob Friesenhahn
ee8700a596 * tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
subsampled data since tiffcrop currently doesn't support it.  Fix
JPEG support.
2010-06-16 01:54:48 +00:00
Bob Friesenhahn
b16131502c Mention 3.9.4 release. 2010-06-15 19:09:03 +00:00
Frank Warmerdam
20ea500233 fix invocation of tagcompare function (#2201) 2010-06-13 19:37:23 +00:00
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