Tom Lane
f752daaaab
Fix TIFF_VARIABLE/TIFF_VARIABLE2 confusion in TIFFPrintDirectory.
2012-12-12 22:50:18 +00:00
Tom Lane
800527edd2
Improve previous patch for CVE-2012-4564.
2012-12-10 18:19:11 +00:00
Tom Lane
bff7f45716
Detect integer overflow in addition when computing buffer size.
2012-12-10 17:27:13 +00:00
Bob Friesenhahn
74295b7487
* tools/tiffset.c: tiffset now supports a -u option to unset a
...
tag. Patch by Zach Baker. See
http://bugzilla.maptools.org/show_bug.cgi?id=2419
2012-12-04 03:02:37 +00:00
Bob Friesenhahn
281ba91d09
* automake: Update Automake to 1.12.5 release.
2012-11-18 18:08:31 +00:00
Bob Friesenhahn
b47e5f1a73
* libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
...
require malloc() to return NULL pointer if requested allocation
size is zero. Assure that _TIFFmalloc does.
2012-11-18 17:51:52 +00:00
Frank Warmerdam
37671b36b9
fix zero size buffer exploit (CVE-2012-4564) in ppm2tiff
2012-11-02 05:13:24 +00:00
Frank Warmerdam
98fc7e047a
avoid crash on null zip error messages
2012-10-18 17:34:59 +00:00
Bob Friesenhahn
21a904d74c
* libtiff 4.0.3 released.
2012-09-22 16:12:43 +00:00
Bob Friesenhahn
f458c10308
* Makefile.am: Update to Automake 1.12.4
2012-09-20 13:50:27 +00:00
Bob Friesenhahn
ec5ce9c2b3
* Makefile.in: Update to Automake 1.12.3
2012-08-19 17:00:46 +00:00
Bob Friesenhahn
7d38024b8d
* libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
...
some TIFF/FX support in libtiff. Add the tag definitions to
tiff.h. Add the related TIFF field definitions to tif_dirinfo.c,
and also fixes an error in a comment. Adds the photometric values
to tif_print.c, and fixes a bug. These changes are by Steve
Underwood.
* libtiff/tif_write.c: Fix bug rewriting image tiles in a
2012-08-19 16:56:32 +00:00
Frank Warmerdam
d85a64b6d6
fix bug rewriting image tiles in a compressed file (gdal #4771 )
2012-08-13 22:10:17 +00:00
Frank Warmerdam
76cb1b57bf
warn when ignoring some corrupt tags
2012-08-02 22:04:41 +00:00
Tom Lane
84595b4fd7
Add accessor functions for the opaque type TIFFField.
2012-07-29 15:45:29 +00:00
Tom Lane
73dec72e8a
Fix a couple more tiff2pdf bugs.
2012-07-19 15:43:41 +00:00
Tom Lane
7e000dd360
In tiff2pdf.c, fail when TIFFSetDirectory() fails.
2012-07-18 15:07:55 +00:00
Bob Friesenhahn
a5681ca6f0
* test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
...
IJG JPEG 7+ uses a different upsampling algorithm which produces
different numeric results.
* libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
work with IJG JPEG 7+.
2012-07-06 17:05:16 +00:00
Bob Friesenhahn
22c4ecd4a8
test/raw_decode.c: Add changes so that test can run with build directory outside of source directory.
2012-07-04 19:45:32 +00:00
Frank Warmerdam
8eeed8edf4
Fix handling when writing RGBA jpeg compressed imagery (gdal #4732 )
2012-07-03 00:57:50 +00:00
Frank Warmerdam
ea64110a44
fix fax3 runs initialization sizing
2012-06-21 02:01:31 +00:00
Frank Warmerdam
b48c0a0604
make tbuf large enough for one stride past the end
2012-06-21 01:01:53 +00:00
Frank Warmerdam
c25b5e77d6
avoid read past end of source data buffer with corrupt data
2012-06-20 05:22:51 +00:00
Frank Warmerdam
111baa289b
updated for 4.0.2 release
2012-06-16 00:19:35 +00:00
Frank Warmerdam
0055471655
avoid some clang warnings
2012-06-15 21:51:54 +00:00
Tom Lane
f5077ed7ed
Fix CVE-2012-2113
2012-06-15 21:44:31 +00:00
Frank Warmerdam
4d26dcb281
be careful about printing corrupt inknames fields
2012-06-13 01:08:51 +00:00
Frank Warmerdam
da49b1d230
ensure fax3/4 runs array is initialized
2012-06-13 00:27:20 +00:00
Frank Warmerdam
0615e2a2b6
avoid pretty printing values without proper rawdata
2012-06-08 05:15:21 +00:00
Frank Warmerdam
2adf098410
improve handling of PAGENUMBER, HALFTONEHINTS, YCBCRSUBSAMPLING and DOTRANGE
2012-06-06 06:06:20 +00:00
Frank Warmerdam
7e632eb41c
treat illegal ycbcrsubsampling as runtime error, not assertion
2012-06-06 05:33:55 +00:00
Frank Warmerdam
783c1ba4ce
add TIFFCreate{Custom,EXIF}Directory() functions
2012-06-06 04:58:00 +00:00
Frank Warmerdam
0725eccdc2
avoid special handling of PAGENUMBER, HALFTONEHINTS, YCBCRSUBSAMPLING and DOTRANGE in non-image directories
2012-06-06 04:56:01 +00:00
Frank Warmerdam
672946cf9b
avoid adjusting h/v_sampling in JPEGPreDecode()
2012-06-05 03:24:30 +00:00
Frank Warmerdam
b3dadc7ff3
avoid reading imagery with -D in EXIF directories
2012-06-01 23:22:53 +00:00
Frank Warmerdam
86a9d53d9e
Added _SEPARATED CMKY support ( #2379 )
2012-06-01 22:22:04 +00:00
Frank Warmerdam
ecf4fed966
use strerror() for open error messages on unix ( #2341 )
2012-06-01 21:40:58 +00:00
Frank Warmerdam
f8fcbec59d
fix serious issues with JPEGDecodeRaw() (bug 2386) Also some whitespace reformatting
2012-06-01 21:08:51 +00:00
Frank Warmerdam
52e121504b
fix buffer overrun in JPEGDecodeRaw() with mixed up sampling
2012-06-01 01:30:55 +00:00
Frank Warmerdam
9184521f3f
make sure tif_rawdatasize is zeroed when tif_rawdata is freed/cleared
2012-06-01 00:55:09 +00:00
Frank Warmerdam
0dd52ae391
Add alpha grayscale image support to TIFFReadRGBAImage
2012-06-01 00:38:39 +00:00
Frank Warmerdam
79a2449b27
fix handling of tags in custom directories which happen to match standard tags but are defined differently in the custom dir
2012-05-30 04:58:13 +00:00
Frank Warmerdam
047f4120df
avoid inappropriate use of tif_rawdata when it is a pointer into mmaped file
2012-05-30 01:50:17 +00:00
Frank Warmerdam
bcc1656171
Allocate working buffer one word larger since we "forward accumulate" and overwrite the end by one word in at least some cases.
2012-05-24 23:21:45 +00:00
Frank Warmerdam
c6d8cdcf29
avoid accessing out of the lookup arrays for out of range inputs.
2012-05-24 05:25:14 +00:00
Frank Warmerdam
920688aac5
avoid uninitialized variable for degenerate files
2012-05-24 03:50:31 +00:00
Frank Warmerdam
dbfa4e6f60
if OJPEGWriteHeader() fails once do not bother trying again on the same image.
2012-05-24 03:15:18 +00:00
Frank Warmerdam
c073384446
make things more resilient in the face of files without stripbytecounts or stripoffsets or where loading these fails.
2012-05-24 02:43:51 +00:00
Frank Warmerdam
af47ad26e2
be careful about whether min/max values per singular or per sample
2012-05-24 02:29:06 +00:00
Frank Warmerdam
e54e9545a0
fix crash with odd 16bit count types for some custom fields
2012-05-24 01:40:24 +00:00