Commit Graph

2566 Commits

Author SHA1 Message Date
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
Tom Lane
8ed155dcc1 Fix raw_decode test so it works on big-endian machines.
The test case was ignoring the documented API for TIFFReadRGBATile,
namely that the output pixels are uint32's and the macros TIFFGetR etc
should be used to fetch the pixel components.

Original patch by Marcus Meissner, somewhat cleaned up by me.
2012-07-03 20:48:11 +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
713699493b Removed a TODO warning for the non-literal case as I think the "cc"
check is already done at the top of the loop.
2012-06-20 05:25:33 +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
871d1067f3 add _TIFFCheckMalloc 2012-06-16 17:07:53 +00:00
Frank Warmerdam
ee51ab00b3 ignore various windows intermediate files 2012-06-16 17:05:37 +00:00
Frank Warmerdam
111baa289b updated for 4.0.2 release 2012-06-16 00:19:35 +00:00
Frank Warmerdam
fb4124be74 add new test scripts 2012-06-15 23:36:41 +00:00
Frank Warmerdam
2471d6f4ab new 2012-06-15 23:10:14 +00:00
Frank Warmerdam
00169dfd4f restore based on standard automake tool versions 2012-06-15 23:09:38 +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
8a0e7ec48b declare variables before any action statements for backwards compiler compat. 2012-06-14 20:32:53 +00:00
Frank Warmerdam
fc0de6d702 unlink temp file when successful. 2012-06-13 04:38:55 +00:00
Frank Warmerdam
c805f9176d update 2012-06-13 03:12:53 +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
b246f148ff nicer way to avoid reading data for non-image directories 2012-06-06 06:05:29 +00:00
Frank Warmerdam
7e632eb41c treat illegal ycbcrsubsampling as runtime error, not assertion 2012-06-06 05:33:55 +00:00
Frank Warmerdam
03cfd4f542 avoid memory leak 2012-06-06 05:26:37 +00:00
Frank Warmerdam
a14505cf0a add custom directory read/write testing 2012-06-06 04:58:29 +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
9bb720cd44 remove unused variable in CMKY code 2012-06-06 00:17:49 +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
bd0ea9c546 fix stdarg mispelling (#2322) 2012-06-01 22:02:44 +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
7f67da5de1 add jpeg in tiff decode testing 2012-06-01 21:04:22 +00:00
Tom Lane
1358a916eb Add self to committers list. 2012-06-01 18:43:21 +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
Frank Warmerdam
c634536376 avoid one byte past end of ink names reading in some cases 2012-05-24 01:03:37 +00:00