Commit Graph

3476 Commits

Author SHA1 Message Date
Even Rouault
ca70b5e702
tiff2rgba.c: fix -Wold-style-declaration warning 2020-10-03 18:16:27 +02:00
Even Rouault
9febb7599a
tif_fax3.h: extra buffer overflow checks. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25934 2020-09-26 23:02:19 +02:00
Even Rouault
c8f0a16f4a
tif_fax3.h: return error when a buffer overflow occurs. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25552 and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25849 2020-09-22 18:27:44 +02:00
Even Rouault
57d487aa1c Merge branch 'fix-float-compare' into 'master'
Fix comparison for max negative float value.

See merge request libtiff/libtiff!152
2020-09-11 09:41:47 +00:00
Dirk Lemstra
c0e310bc3f
Fix comparison for max negative float value. 2020-09-11 10:41:11 +02:00
Even Rouault
7b840002c1
Fax3PreDecode(): reset curruns and refruns state variables
to avoid out-of-bounds write triggered by GDAL when repeatedly
reading a corrupt strip.

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25493
2020-09-07 23:51:23 +02:00
Thomas Bernard
1373f8dacb Merge branch 'issue-17' into 'master'
normalize tools behaviour regarding -h

Closes #17

See merge request libtiff/libtiff!115
2020-06-06 20:32:09 +00:00
Even Rouault
8a58319106
TWebPSetupEncode(): fix logic problem (and instead of or) in test that checks input is 8bit unsigned data 2020-05-31 21:18:21 +02:00
Even Rouault
6b3b189d5b
TIFFGetConfiguredCODECs(): fix to avoid wrong structure to be returned for registered (ie non built-in) codecs 2020-05-13 00:56:14 +02:00
Even Rouault
2a597b76cc Merge branch 'zstd-webp-update' into 'master'
gitlab-ci: use latest zstd and webp versions

See merge request libtiff/libtiff!148
2020-05-09 12:15:38 +00:00
Even Rouault
4c750d0238 Merge branch 'deprecated' into 'master'
ojpeg: s/Depreciated/Deprecated/

See merge request libtiff/libtiff!149
2020-05-09 12:13:27 +00:00
Aaron Boxer
0c2445854f ojpeg: s/Depreciated/Deprecated/ 2020-05-09 08:00:43 -04:00
Even Rouault
5fb3593eba
Fix typos 2020-04-28 00:49:54 +02:00
Even Rouault
8405704ebb
tif_jpeg.c: avoid potential division in previous fix (master only) 2020-04-27 13:20:55 +02:00
Thomas Bernard
312105b4a1
gitlab-ci: use latest zstd and webp versions 2020-04-26 22:32:35 +02:00
Even Rouault
c96a0232b7
tiff.h: fixes to use ASCII only characters (master only) 2020-04-26 22:30:14 +02:00
Thomas Bernard
aea167005f
tiffsplit: use EXIT_SUCCESS / EXIT_FAILURE 2020-04-26 22:15:09 +02:00
Thomas Bernard
2fa1ce2f55
tiffset: print usage on stdout when -h is used
also use EXIT_FAILURE / EXIT_SUCCESS
see #17
2020-04-26 22:15:09 +02:00
Thomas Bernard
9bf9cd3926
tiffmedian: shopw usage on stdout when -h is used
aslo use EXIT_SUCCESS/EXIT_FAILURE
see #17
2020-04-26 22:15:09 +02:00
Thomas Bernard
1c614e2686
tiffinfo: print usage on stdout when -h is used
also use EXIT_FAILURE / EXIT_SUCCESS
see #17
2020-04-26 22:15:09 +02:00
Thomas Bernard
46c8624972
raw2tiff: print usage to stdout when -h is used
see #17
2020-04-26 22:15:08 +02:00
Thomas Bernard
ee6cf2f59d
tiff2pdf: print usage on stdout when -h is used
see #17
2020-04-26 22:15:08 +02:00
Thomas Bernard
2c6e8805ba
tiffgt: output usage on stdout with -h
also use EXIT_SUCCESS / EXIT_FAILURE
2020-04-26 22:15:08 +02:00
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