Even Rouault
311335ea46
Merge branch 'git_updates' into 'master'
...
CVS to Git updates
See merge request libtiff/libtiff!2
2017-12-01 10:02:10 +00:00
Even Rouault
95665760ef
HOWTO-RELEASE: update to use signed tags
2017-12-01 10:58:09 +01:00
Even Rouault
f756566000
README.md: use markdown syntax for hyperlinks
2017-12-01 10:52:18 +01:00
Even Rouault
b48399eabe
Add .gitignore
2017-11-30 18:23:40 +01:00
Even Rouault
8603db6cfa
Regenerate autoconf files
2017-11-30 18:10:01 +01:00
Even Rouault
40c6649483
Makefile.am: update to reflect removal of README.vms and README -> README.md
2017-11-30 18:09:43 +01:00
Even Rouault
f0a54a4fa0
Remove all $Id and $Headers comments with CVS versions
2017-11-30 18:02:46 +01:00
Even Rouault
5cc89a8c8d
HOWTO-RELEASE: update for git
2017-11-30 17:46:53 +01:00
Even Rouault
22c0c1ec70
Remove outdated .cvsignore
2017-11-30 17:45:40 +01:00
Even Rouault
5c661fa019
Remove outdated commit script
2017-11-30 17:45:20 +01:00
Even Rouault
be7c2b687b
Remove README.vms
2017-11-30 17:44:53 +01:00
Even Rouault
0769c447b7
Rename README as README.md, and update content
2017-11-30 17:44:47 +01:00
Even Rouault
b1374e94ac
html/index.html: reflect change from CVS to gitlab
2017-11-30 16:55:01 +01:00
Olivier Paquet
92d54fd77a
Merge branch 'test-ci' into 'master'
...
Update CI configuration
See merge request libtiff/libtiff!1
2017-11-30 14:04:12 +00:00
Roger Leigh
68c928923a
appveyor: Correct path for git clone and skip artefact archival
2017-11-23 08:23:34 +00:00
Roger Leigh
4f84ea631b
travis-ci: Remove unused matrix exclusion
2017-11-22 22:58:32 +00:00
Roger Leigh
1ac42d5f93
Add gitlab-ci build support
2017-11-22 22:57:48 +00:00
Bob Friesenhahn
38ec4dd074
Change default user id in HOWTO-RELEASE to mine.
2017-11-18 20:04:50 +00:00
Bob Friesenhahn
020bd2fd3b
* configure.ac: libtiff 4.0.9 released.
2017-11-18 20:00:43 +00:00
Bob Friesenhahn
737c52ae13
* html/v4.0.9.html: Add HTML file to document changes in libtiff
...
v4.0.9.
2017-11-18 19:38:06 +00:00
Even Rouault
5426f499e8
* libtiff/tif_aux.c, tif_getimage.c, tif_read.c: typo fixes in
...
comments.
2017-11-17 20:20:59 +00:00
Bob Friesenhahn
238b103ba5
List Frank Warmerdam and Andrey Kiselev as past maintainers since they have not been active in years.
2017-11-07 02:00:06 +00:00
Bob Friesenhahn
45065882ae
* test/Makefile.am: Add some tests for tiff2bw.
2017-11-02 13:51:22 +00:00
Bob Friesenhahn
25f9ffa565
* tools/tiff2bw.c (main): Free memory allocated in the tiff2bw
...
program. This is in response to the report associated with
CVE-2017-16232 but does not solve the extremely high memory usage
with the associated POC file.
2017-11-01 13:41:58 +00:00
Bob Friesenhahn
61d4eb3a01
tiff2pdf.c: Fix possible overflow in bounds check computation and eliminate signed/unsigned comparison.
2017-10-29 18:50:41 +00:00
Bob Friesenhahn
1cb6c46b9d
fax2tiff: Pass the FAX_Client_Data struct as client data
2017-10-29 18:28:43 +00:00
Even Rouault
f258b80230
* libtiff/tif_getimage.c: avoid floating point division by zero in
...
initCIELabConversion()
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3733
Credit to OSS Fuzz
2017-10-23 11:34:26 +00:00
Even Rouault
5bf07456da
* libtiff/tif_jpeg.c: add compatibility with libjpeg-turbo 1.5.2 that
...
honours max_memory_to_use > 0.
Cf https://github.com/libjpeg-turbo/libjpeg-turbo/issues/162
2017-10-17 19:04:47 +00:00
Even Rouault
7c1a32bb9f
* nmake.opt: support a DEBUG=1 option, so as to adjust OPTFLAGS and use
...
/MDd runtime in debug mode.
2017-10-10 14:39:43 +00:00
Even Rouault
76a2b9d619
* tools/tiffset.c: fix setting a single value for the ExtraSamples tag
...
(and other tags with variable number of values).
So 'tiffset -s ExtraSamples 1 X'. This only worked
when setting 2 or more values, but not just one.
2017-10-01 17:38:12 +00:00
Even Rouault
28bf544f33
* libtiff/libtiff.def: add TIFFReadRGBAStripExt and TIFFReadRGBATileExt
...
Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2735
2017-09-29 11:18:50 +00:00
Even Rouault
dfbdd88c5a
dummy commit to check CVS is working
2017-09-22 13:55:49 +00:00
Even Rouault
46c51095d6
* libtiff/tif_dirread.c: add NULL check to avoid likely false positive
...
null-pointer dereference warning by CLang Static Analyzer.
2017-09-09 21:44:42 +00:00
Even Rouault
c4a2f72e9d
* libtiff/tiffiop.h, tif_aux.c: redirect SeekOK() macro to a _TIFFSeekoK()
...
function that checks if the offset is not bigger than INT64_MAX, so as
to avoid a -1 error return code of TIFFSeekFile() to match a required
seek to UINT64_MAX/-1.
Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2726
Adapted from proposal by Nicolas Ruff.
2017-09-07 14:02:52 +00:00
Even Rouault
71ce9dbe19
Fix signed vs unsigned comparison
2017-08-29 08:08:10 +00:00
Even Rouault
860943a370
* libtiff/tif_jpeg.c: accept reading the last strip of a JPEG compressed
...
file if the codestream height is larger than the truncated height of the
strip. Emit a warning in this situation since this is non compliant.
* test/Makefile.am: add missing reference to images/quad-lzw-compat.tiff
to fix "make distcheck". Patch by Roger Leigh
2017-08-29 07:30:07 +00:00
Even Rouault
6dac309a97
* test/Makefile.am: add missing reference to images/quad-lzw-compat.tiff
...
to fix "make distcheck". Patch by Roger Leigh
2017-08-28 15:43:14 +00:00
Even Rouault
fe7f0e43ee
* libtiff/tif_dirwrite.c: replace assertion to tag value not fitting
...
on uint32 when selecting the value of SubIFD tag by runtime check
(in TIFFWriteDirectoryTagSubifd()).
Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2728
Reported by team OWL337
SubIFD tag by runtime check (in TIFFWriteDirectorySec())
2017-08-23 13:33:42 +00:00
Even Rouault
4958e19fae
* libtiff/tif_dirwrite.c: replace assertion related to not finding the
...
SubIFD tag by runtime check.
Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2727
Reported by team OWL337
2017-08-23 13:21:41 +00:00
Even Rouault
8ad1c70dc1
* libtiff/tif_luv.c: further reduce memory requirements for temporary
...
buffer when RowsPerStrip >= image_length in LogLuvInitState() and
LogL16InitState().
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2700
Credit to OSS Fuzz
2017-07-24 12:47:30 +00:00
Even Rouault
06155116f6
* libtiff/tif_getimage.c: fix fromskew computation when to-be-skipped
...
pixel number is not a multiple of the horizontal subsampling, and
also in some other cases. Impact putcontig8bitYCbCr44tile,
putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile,
putcontig8bitYCbCr21tile and putcontig8bitYCbCr12tile
Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2637 (discovered
by Agostino Sarubbo)
and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2691 (credit
to OSS Fuzz)
2017-07-24 10:34:14 +00:00
Even Rouault
ec4d8e0895
* libtiff/tif_getimage.c: gtTileContig() and gtTileSeparate():
...
properly break from loops on error when stoponerr is set, instead
of going on iterating on row based loop.
2017-07-24 09:52:23 +00:00
Even Rouault
c3980af085
* libtiff/tif_luv.c: LogLuvInitState(): avoid excessive memory
...
allocation when RowsPerStrip tag is missing.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2683
Credit to OSS-Fuzz
2017-07-18 19:45:11 +00:00
Even Rouault
2b14fd7f6e
Fix warning with x86_64-w64-mingw32-g++
2017-07-15 14:27:50 +00:00
Even Rouault
024b2fa26a
Fix signed vs unsigned comparison warning on Windows
2017-07-15 13:51:22 +00:00
Even Rouault
d99c422dbf
* libtiff/tif_read.c: add protection against excessive memory
...
allocation attempts in TIFFReadDirEntryArray() on short files.
Effective for mmap'ed case. And non-mmap'ed case, but restricted
to 64bit builds.
Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2675
2017-07-15 13:23:09 +00:00
Even Rouault
02271af177
* libtiff/tif_read.c: in TIFFFetchStripThing(), only grow the
...
arrays that hold StripOffsets/StripByteCounts, when they are smaller
than the expected number of striles, up to 1 million striles, and
error out beyond. Can be tweaked by setting the environment variable
LIBTIFF_STRILE_ARRAY_MAX_RESIZE_COUNT.
This partially goes against a change added on 2002-12-17 to accept
those arrays of wrong sizes, but is needed to avoid denial of services.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2350
Credit to OSS Fuzz
2017-07-15 13:19:56 +00:00
Even Rouault
5b7f711586
* libtiff/tif_read.c: TIFFFillStrip() / TIFFFillTile().
...
Complementary fix for http://bugzilla.maptools.org/show_bug.cgi?id=2708
in the isMapped() case, so as to avoid excessive memory allocation
when we need a temporary buffer but the file is truncated.
2017-07-15 12:33:25 +00:00
Even Rouault
979751c407
* tools/tiff2pdf.c: prevent heap buffer overflow write in "Raw"
...
mode on PlanarConfig=Contig input images.
Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2715
Reported by team OWL337
2017-07-15 11:13:46 +00:00
Even Rouault
2ac7bddb78
* libtiff/tif_dir.c: avoid potential null pointer dereference in
...
_TIFFVGetField() on corrupted TIFFTAG_NUMBEROFINKS tag instance.
Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2713
2017-07-11 21:38:04 +00:00