Commit Graph

3427 Commits

Author SHA1 Message Date
Even Rouault
632f6a1a4f Merge branch 'issue-117' into 'master'
tiffcrop: enforce memory allocation limit

Closes #117

See merge request libtiff/libtiff!140
2020-04-03 19:11:09 +00:00
Thomas Bernard
1f3e801d96 tiffcrop: enforce memory allocation limit
uses -k option to change limit (default to 256MiB)
fixes #117 / http://bugzilla.maptools.org/show_bug.cgi?id=2757
2020-04-03 19:11:09 +00:00
Even Rouault
57449991d7 Merge branch 'issue-45' into 'master'
tiffcp: disable strip chopping when trying to convert to JBIG compression

Closes #45

See merge request libtiff/libtiff!138
2020-04-02 08:07:26 +00:00
Even Rouault
a203c9ba20 Merge branch 'issue-124' into 'master'
TIFFGetFields(3tiff): TIFFTAG_*BYTECOUNTS TIFFTAG_*OFFSETS are uint64

Closes #124

See merge request libtiff/libtiff!137
2020-04-02 08:06:58 +00:00
Even Rouault
31ca59cb04 Merge branch 'aix_itrunc' into 'master'
Rename itrunc to fix name clash with a different itrunc in math.h on AIX. Fixes issue #189

Closes #189

See merge request libtiff/libtiff!139
2020-04-02 08:06:16 +00:00
Rob Boehne
e2ea6e93b2 Rename itrunc to fix name clash with a different itrunc in math.h on AIX. Fixes issue #189 2020-04-01 19:05:40 -05:00
Thomas Bernard
e526f620ef
tiffcp: disable strip chopping when trying to convert to JBIG compression
fixes #45
2020-04-02 01:18:10 +02:00
Thomas Bernard
ccf53d7417
TIFFGetFields(3tiff): TIFFTAG_*BYTECOUNTS TIFFTAG_*OFFSETS are uint64
fixes #124 / http://bugzilla.maptools.org/show_bug.cgi?id=2774
2020-03-29 19:28:25 +02:00
Even Rouault
94679bc2d8 Merge branch 'issue-48' into 'master'
tiff2pdf: fix "raw" copy of Deflate streams

Closes #48

See merge request libtiff/libtiff!136
2020-03-29 16:11:18 +00:00
Thomas Bernard
4efb92d1c9
tiff2pdf: fix "raw" copy of Deflate streams
The Predictor parametter was not copied from the source tiff to the PDF.
fixes #48 / http://bugzilla.maptools.org/show_bug.cgi?id=2442
2020-03-27 22:34:37 +01:00
Thomas Bernard
f1e9078f92
tif_fax3: quit Fax3Decode2D() when a buffer overflow occurs
fixes #186
2020-03-26 23:08:28 +01:00
Even Rouault
ed881da0db Merge branch 'issue-143-144' into 'master'
tiffdump: avoid unaligned memory access

Closes #144 et #143

See merge request libtiff/libtiff!133
2020-03-24 12:39:48 +00:00
Even Rouault
3c47638aaa Merge branch 'issue-133' into 'master'
tiff2pdf: avoid divide by 0

Closes #133

See merge request libtiff/libtiff!126
2020-03-24 12:39:18 +00:00
Thomas Bernard
bd49c5810f
tiff2pdf: normalizePoint() macro to normalize the white point 2020-03-24 11:34:36 +01:00
Thomas Bernard
37121e1574
tiffdump: avoid unaligned memory access
fixes #143
fixes #144
2020-03-24 00:18:32 +01:00
Even Rouault
6c63f17749 Merge branch 'out-of-memory' into 'master'
tiffcp/tiff2pdf/tiff2ps: enforce maximum malloc size

Closes #153, #84, #116 et #115

See merge request libtiff/libtiff!130
2020-03-23 18:11:02 +00:00
Even Rouault
9b64089083 Merge branch 'issue-157' into 'master'
tiffset: check memory allocation

Closes #157

See merge request libtiff/libtiff!132
2020-03-23 18:06:41 +00:00
Even Rouault
204c464327 Merge branch 'issue-185' into 'master'
tif_fax3: more buffer overflow checks in Fax3Decode2D()

Closes #185

See merge request libtiff/libtiff!131
2020-03-23 18:05:54 +00:00
Thomas Bernard
b738aaa834
tiffset: check memory allocation
fixes #157 / http://bugzilla.maptools.org/show_bug.cgi?id=2850
2020-03-23 17:17:17 +01:00
Thomas Bernard
3440ac2164
tif_fax3: more buffer overflow checks in Fax3Decode2D()
fixes #185
2020-03-23 17:00:23 +01:00
Thomas Bernard
dff30c4d5d
tiff2ps: enforce memory allocation limit
fixes #153 / http://bugzilla.maptools.org/show_bug.cgi?id=2845
2020-03-21 15:50:38 +01:00
Thomas Bernard
791046b3c6
tiff2pdf: enforce maximum data size
fixes #116 / http://bugzilla.maptools.org/show_bug.cgi?id=2756
fixes #84 / http://bugzilla.maptools.org/show_bug.cgi?id=2683
2020-03-21 15:30:43 +01:00
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
Thomas Bernard
dbc90f9374
tiff2pdf: avoid divide by 0
fixes #133 http://bugzilla.maptools.org/show_bug.cgi?id=2796
2020-03-18 01:37:54 +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