Thomas Bernard
bbf1da8750
update man page for tiffcp regarding the -m option
2020-03-21 15:00:43 +01:00
Thomas Bernard
035c1961d6
tiffcp.c: _TIFFmalloc() => limitMalloc()
2020-03-21 13:20:17 +01:00
Thomas Bernard
0a58e22b17
tiffcp: enforce maximum malloc size
...
default is 256MB. use -m option to change
fixes #115 / http://bugzilla.maptools.org/show_bug.cgi?id=2755
2020-03-21 13:20:12 +01:00
Even Rouault
443bd37f65
Merge branch 'issue-184' into 'master'
...
CmakeLists.txt: define WORDS_BIGENDIAN when the CPU is big endian
Closes #184
See merge request libtiff/libtiff!127
2020-03-21 11:33:13 +00:00
Even Rouault
41159741d7
Merge branch 'issue-44' into 'master'
...
tiff2pdf: "" causes the relevant argument not to be written
Closes #44
See merge request libtiff/libtiff!128
2020-03-21 11:21:33 +00:00
Even Rouault
7cadcb901b
Merge branch 'issue-56' into 'master'
...
fix man for TIFFReadEncodedStrip(), TIFFStripSize, TIFFVStripSize, TIFFRawStripSize
Closes #56
See merge request libtiff/libtiff!129
2020-03-21 11:17:03 +00:00
Thomas Bernard
37a29d56a7
fix man for TIFFReadEncodedStrip(), TIFFStripSize, TIFFVStripSize, TIFFRawStripSize
...
fixes #56
http://bugzilla.maptools.org/show_bug.cgi?id=2507
2020-03-21 01:14:36 +01:00
Thomas Bernard
f704878200
tiff2pdf: "" causes the relevant argument not to be written
...
fixes #44
2020-03-21 01:05:41 +01:00
Thomas Bernard
35cc068275
CmakeLists.txt: define WORDS_BIGENDIAN when the CPU is big endian
...
fixes #184
2020-03-21 00:31:41 +01:00
Even Rouault
7c8dafc28c
Merge branch 'issue-22' into 'master'
...
do not _tiffMapProc 0 size files
Closes #22
See merge request libtiff/libtiff!125
2020-03-17 22:51:09 +00:00
Thomas Bernard
e99c4b816a
tif_win32.c: do not _tiffMapProc() 0 sized files
...
see #22
2020-03-14 00:10:29 +01:00
Thomas Bernard
0c04331f97
tif_unix.c: do not _tiffMapProc 0 size files
...
fixes #22
http://bugzilla.maptools.org/show_bug.cgi?id=2249
2020-03-14 00:08:49 +01:00
Even Rouault
fe10bc1bc3
tif_fax3.c: fix warning C4018: '<': signed/unsigned mismatch introduced in past commits
2020-03-12 14:22:00 +01:00
Even Rouault
0cd92e6459
tiff.h: mention TIFFTAG_RPCCOEFFICIENT, TIFFTAG_TIFF_RSID, TIFFTAG_GEO_METADATA
2020-03-12 01:06:41 +01:00
Even Rouault
c47ae56a6a
Merge branch 'issue-60' into 'master'
...
added support for more private tags
Closes #60
See merge request libtiff/libtiff!124
2020-03-12 00:01:11 +00:00
Even Rouault
08e67f831a
Merge branch 'issue-160' into 'master'
...
Fax3SetupState(): check consistency of rowbytes and rowpixels
Closes #160
See merge request libtiff/libtiff!123
2020-03-11 23:55:10 +00:00
Thomas Bernard
0bd069f88f
added support for more private tags
...
see https://gitlab.com/libtiff/libtiff/-/issues/60
bugzilla.maptools.org/show_bug.cgi?id=2525
closes #60
original author : art1@andreas-romeyke.de
2020-03-12 00:03:35 +01:00
Thomas Bernard
197bfe4c14
Fax3SetupState(): check consistency of rowbytes and rowpixels
...
also add some parameter documentation to Fax3Decode1D()
fixes #160
http://bugzilla.maptools.org/show_bug.cgi?id=2854
2020-03-11 23:34:21 +01:00
Even Rouault
8614c4046f
Merge branch 'issue-11-const-pointers' into 'master'
...
Make pointers returned via TIFFGetField const
Closes #11
See merge request libtiff/libtiff!118
2020-03-10 22:33:57 +00:00
Even Rouault
1120a2d578
tif_ojpeg.c: relax again too strict sanity checks to allow reading of valid images such as https://gitlab.com/libtiff/libtiff/-/issues/181#note_302535232 . Fixes #181
2020-03-10 16:31:41 +01:00
Even Rouault
ae054d59ae
Merge branch 'issue-52' into 'master'
...
contrib/win_dib/tiff2dib: fix Uninitialized variable: lpBits
Closes #52
See merge request libtiff/libtiff!121
2020-03-09 10:31:52 +00:00
Thomas Bernard
70b8c095f8
contrib/win_dib/tiff2dib: fix Uninitialized variable: lpBits
...
fixes #52
http://bugzilla.maptools.org/show_bug.cgi?id=2469
2020-03-09 09:08:07 +01:00
Even Rouault
dce4bb0da5
Merge branch 'issue-58' into 'master'
...
Make TIFFTAG_CFAPATTERN variable count
Closes #58
See merge request libtiff/libtiff!120
2020-03-08 22:31:25 +00:00
Even Rouault
84b8b9a3e7
Merge branch 'issue-158-no-predictor-in-webp' into 'master'
...
TIFFTAG_PREDICTOR is not supported for WebP
Closes #158
See merge request libtiff/libtiff!119
2020-03-08 22:21:33 +00:00
Sam Hasinoff
2eb5a954cb
Make TIFFTAG_CFAPATTERN variable count
...
The TIFFTAG_CFAPATTERN tag (33422) from TIFF/EP, recently introduced in libtiff
3363eda09d
/ http://bugzilla.maptools.org/show_bug.cgi?id=2457
is described as having a fixed count of 4.
But the TIFF/EP spec says this should support a variable count (= CFARepeatRows * CFARepeatCols):
TIFF/EP, ISO 12234-2:2001
http://www.barrypearson.co.uk/top2009/downloads/TAG2000-22_DIS12234-2.pdf
page 18 and 26
2020-03-08 21:23:16 +01:00
Thomas Bernard
54ce8c5220
TIFFTAG_PREDICTOR is not supported for WebP
...
fixes #158
https://gitlab.com/libtiff/libtiff/-/issues/158
this bug was introduced by 9eacd59fec
merge request !32
2020-03-08 20:33:34 +01:00
Adam Goode
d6827861cb
Make the default whitepoint and ycbcrcoeffs arrays const
...
Now that we are returning const pointers in TIFFGetFieldDefaulted,
we can now make these static default arrays const.
see #11
2020-03-08 00:54:36 +01:00
Adam Goode
63c666344f
Make pointers returned via TIFFGetField const
...
According to http://bugzilla.maptools.org/show_bug.cgi?id=2125#c6
callers are not allowed to modify pointer or array values returned from
TIFFGetField or the like. So, make this explicit in the documentation
by specifying these things as const. Note that this is not an ABI
change, since C does not encode const in libraries. Also, this is
not really an API change, since the varargs call strips away all
the types anyway. So it really is more of a documentation change.
fixes #11
2020-03-08 00:51:28 +01:00
Even Rouault
e95584d3b8
CMake: Skip custom_dir_EXIF_231 test on shared builds to avoid issues on Windows
2020-03-07 17:37:42 +01:00
Even Rouault
d83f5ce943
Merge branch 'EXIF231_GPS_upgrade' into 'master'
...
EXIF 2.32 and GPS TIFF-tags and functionality upgraded.
See merge request libtiff/libtiff!91
2020-03-07 16:01:12 +00:00
Su_Laus
a8193c438f
EXIF 2.32 and GPS tags and functionality upgraded.
...
- Existing EXIF field definition of tags is upgraded to EXIF version 2.3.2
- EXIF-GPS structure, tags and access functions are added as special CustomDirectory (like it was done for EXIF).
- Test program custom_dir_EXIF_231.c added to test writing/reading of EXID IFD and GPS IFD tags
and to highlight some quirks of IFD-handling and peculiarities of reading/writing the different data types.
- Reading error for FileSource and SceneType tags corrected.
- EXIF_GPS_upgrade rebased onto c8c5309b76
(Merge branch 'Rational2DoublePrecision_correction' into 'master')
and adapted:
- tif_dirinfo.c: All rational tags set to TIFF_SETGET_FLOAT but only the GPSTAG_ tags set to TIFF_SETGET_DOUBLE.
- custom_dir_EXIF_231.c: Editorials amended and gcc warnigs fixed.
- CMakeLists.txt: add_test(NAME "custom_dir_EXIF_231" COMMAND "custom_dir_EXIF_231") added.
2020-03-07 16:50:18 +01:00
Even Rouault
74cf519c9f
Merge branch 'issue-55' into 'master'
...
ppm2tiff: support any bps value from 1 to 16
Closes #55
See merge request libtiff/libtiff!106
2020-03-07 11:02:38 +00:00
Thomas Bernard
5f84fefcf5
ppm2tiff: Add test for 16bpc PPM
2020-03-07 11:46:20 +01:00
Thomas Bernard
622492cb31
ppm2tiff: remove unused argument warning
2020-03-07 10:56:31 +01:00
Ludolf Holzheid
5582d0bfad
ppm2tiff: support any bps value from 1 to 16
...
fix #55
http://bugzilla.maptools.org/show_bug.cgi?id=2505
Patch originally submited by Ludolf Holzheid <ludolf.holzheid@gmx.de>
2020-03-07 10:56:31 +01:00
Even Rouault
bba9d00d77
Merge branch 'fax-test' into 'master'
...
add test for fax4 decoding
See merge request libtiff/libtiff!114
2020-03-06 09:03:45 +00:00
Thomas Bernard
ff56dc47af
add test for fax4 decoding
...
This will check for regression on #46
https://gitlab.com/libtiff/libtiff/issues/46
http://bugzilla.maptools.org/show_bug.cgi?id=2434
2020-03-05 23:51:32 +01:00
Even Rouault
a712dc3f42
Merge branch 'freebsd-tests' into 'master'
...
make tests pass under FreeBSD.
See merge request libtiff/libtiff!113
2020-03-05 22:26:11 +00:00
Thomas Bernard
ed9d09cf0a
make tests pass under FreeBSD.
...
the -I option for the GNU diff and the FreeBSD diff
behaves differently regarding escaping the ( ) and |
By using two -I option, we avoid using such charracters.
2020-03-05 23:15:06 +01:00
Even Rouault
a6d3c1d64b
Merge branch 'issue-31' into 'master'
...
HTML
Closes #31
See merge request libtiff/libtiff!111
2020-03-05 11:45:15 +00:00
Even Rouault
d71530462f
Merge branch 'issue-179' into 'master'
...
tif_fax3.h: check for buffer overflow in EXPAND2D before "calling" CLEANUP_RUNS()
Closes #179
See merge request libtiff/libtiff!112
2020-03-05 11:39:34 +00:00
Thomas Bernard
a9f96b79d7
v4.1.0.html: fix for validation
...
long <!----------------> comments were replaced
because they confused some parsers
2020-03-05 11:57:23 +01:00
Thomas Bernard
f5d1d8df7b
add DOCTYPE on v*.html
2020-03-05 11:43:57 +01:00
Thomas Bernard
690cc7a701
fix HTML files so they are valid according to https://validator.w3.org
2020-03-05 11:38:31 +01:00
Thomas Bernard
b351db8be1
tif_fax3.h: check for buffer overflow in EXPAND2D before "calling" CLEANUP_RUNS()
...
fixes #179
this fixes the regression introduced in 02bb0175
/ 72c4acef
( merge request !110 )
It may be a better fix to do the overflow check in SETVALUE() but the
macro do { } while(0) construct makes it difficult to quit the loop
properly.
2020-03-05 10:27:04 +01:00
Thomas Bernard
535830c277
index.html: fix unclosed <tt> tag
2020-03-01 22:26:55 +01:00
Thomas Bernard
794ec1ad50
html: do not force colors (which are default anyway)
...
If needed, style should be set using CSS.
fixes #31
https://gitlab.com/libtiff/libtiff/issues/31
http://bugzilla.maptools.org/show_bug.cgi?id=2326
2020-03-01 22:25:29 +01:00
Even Rouault
25b274126d
TIFFReadCustomDirectory(): fix potential heap buffer overflow when reading a custom directory, after a regular directory where a codec was active. Fixes https://gitlab.com/libtiff/libtiff/issues/178
2020-03-01 22:22:01 +01:00
Even Rouault
18ca4b4276
Merge branch 'issue-46' into 'master'
...
fix decoding of fax4 images
Closes #46
See merge request libtiff/libtiff!110
2020-03-01 10:39:07 +00:00
Thomas Bernard
72c4acef4b
tif_fax3: better fix for CVE-2011-0192
...
There are some legitimate case which were forbidden by the previous fix
2020-03-01 00:38:59 +01:00