Commit Graph

3453 Commits

Author SHA1 Message Date
Thomas Bernard
eb6806dd64
tiffdump: use EXIT_FAILURE / EXIT_SUCCESS
see #17
2020-04-26 22:15:08 +02:00
Thomas Bernard
68564877c7
tiffdither: print usage on stdout when -h is used
see #17
2020-04-26 22:15:08 +02:00
Thomas Bernard
08b99340ee
tiffcrop: -h / -v prints usage/version to stdout
also uses the standard C EXIT_SUCCESS / EXIT_FAILURE
macros

see #17
2020-04-26 22:15:05 +02:00
Thomas Bernard
2b2b1fd8fe
tiffcp: output usage to stdout when using -h
also use EXIT_FAILURE / EXIT_SUCCESS
see #17
2020-04-26 22:13:28 +02:00
Thomas Bernard
5e0eb5bbf4
tiffcmp: match exit status for posix cmp and diff tools 2020-04-26 22:11:36 +02:00
Thomas Bernard
02875964eb
tiff2rgba: output usage to stdout when using -h
also uses std C EXIT_FAILURE / EXIT_SUCCESS
see #17
2020-04-26 22:11:36 +02:00
Thomas Bernard
05993b6408
tiff2ps: sue EXIT_FAILURE / EXIT_SUCCESS
see #17
2020-04-26 22:11:36 +02:00
Thomas Bernard
ff18e43223
tiff2bw: output usage on stdout when using -h
also uses EXIT_SUCCESS / EXIT_FAILURE
see #17
2020-04-26 22:11:35 +02:00
Thomas Bernard
da2995eecf
thumbnail: use EXIT_FAILURE / EXIT_SUCCESS
the -h option was already used so it cannot be used for help/usage
see #17
2020-04-26 22:11:35 +02:00
Thomas Bernard
aa4409eda5
rgb2ycbcr: use EXIT_FAILURE / EXIT_SUCCESS
the -h option was already used so it cannot be used for help/usage
see #17
2020-04-26 22:11:35 +02:00
Thomas Bernard
113a07e9f3
ppm2tiff: output usage to stdout when using -h option
also uses std C EXIT_SUCCESS / EXIT_FAILURE
see #17
2020-04-26 22:11:35 +02:00
Thomas Bernard
3ac0c950c6
pal2rgb: output usage to stdout when -h is used
see #17
2020-04-26 22:11:35 +02:00
Thomas Bernard
04e7c51f4e
fax2tiff.c: print usage on stdout when using -h option
see #17
2020-04-26 22:11:35 +02:00
Thomas Bernard
0aed3363cf
fax2ps: output usage to stdout when using -h option
also use EXIT_SUCCESS, EXIT_FAILURE from C standard
2020-04-26 22:11:34 +02:00
Even Rouault
b683c37524 Merge branch 'jpeg_multiscan_dos_logic' into 'master'
tif_jpeg.c: revise logic to detect potential excessive memory usage when...

See merge request libtiff/libtiff!147
2020-04-25 10:25:43 +00:00
Even Rouault
400ae6f2b1 Merge branch 'issue-176' into 'master'
tiff2pdf: get rid of uninitialized memory content

Closes #176

See merge request libtiff/libtiff!143
2020-04-24 19:16:06 +00:00
Even Rouault
daed3c04ab
tif_jpeg.c: revise logic to detect potential excessive memory usage when decoding multiscan JPEG compressed images 2020-04-24 20:29:06 +02:00
Thomas Bernard
f840b0d2ba
tiff2pdf: test the return code of TIFFReadRawStrip() and TIFFReadRawTile() 2020-04-19 23:39:59 +02:00
Thomas Bernard
8fed45347e
tiff2pdf.c: fix some whitespace problems in source 2020-04-19 20:55:05 +02:00
Thomas Bernard
bb1ab756d6
tiff2pdf: get rid of uninitialized memory content
fixes #176
2020-04-19 20:55:05 +02:00
Even Rouault
1b4708f67f Merge branch 'issue-18' into 'master'
tiffset: pass size for TIFFTAG_INKNAMES

Closes #18

See merge request libtiff/libtiff!146
2020-04-19 18:32:25 +00:00
Olivier Paquet
4a91774d5d Merge branch 'issue-80' into 'master'
tiffinfo: fix dump of Tiled images

Closes #80

See merge request libtiff/libtiff!144
2020-04-18 14:05:15 +00:00
Even Rouault
c51400048e
Fix wrong file size checks for memory-mapped BigTIFF files that could lead to image rejection 2020-04-15 20:14:47 +02:00
Thomas Bernard
4b64bf1cee
tiffset: pass size for TIFFTAG_INKNAMES
Uses TIFFFieldPassCount() to know which arguments need to be
passed to TiffSetField()

fixes #18
see http://bugzilla.maptools.org/show_bug.cgi?id=2202
2020-04-05 19:33:02 +02:00
Thomas Bernard
aa9d52ac2b
tiffinfo: showdata for tiled images 2020-04-05 01:19:10 +02:00
Thomas Bernard
691427ea8d
tiffinfo: fix dump of Tiled images
fixes #80
2020-04-05 00:46:12 +02:00
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