summaryrefslogtreecommitdiff
path: root/media-libs/tiff/files/tiff-4.0.7-bug2594.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/tiff/files/tiff-4.0.7-bug2594.patch')
-rw-r--r--media-libs/tiff/files/tiff-4.0.7-bug2594.patch28
1 files changed, 0 insertions, 28 deletions
diff --git a/media-libs/tiff/files/tiff-4.0.7-bug2594.patch b/media-libs/tiff/files/tiff-4.0.7-bug2594.patch
deleted file mode 100644
index b2bc26e9064c..000000000000
--- a/media-libs/tiff/files/tiff-4.0.7-bug2594.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From a56820e2022e23610c1ea99fbf621d73d1e36348 Mon Sep 17 00:00:00 2001
-From: Even Rouault <even.rouault@spatialys.com>
-Date: Sat, 3 Dec 2016 14:18:48 +0000
-Subject: [PATCH] * tools/tiffinfo.c: fix null pointer dereference in -r mode
- when the image has no StripByteCount tag. Reported by Agostino Sarubbo. Fixes
- http://bugzilla.maptools.org/show_bug.cgi?id=2594
-
----
- ChangeLog | 7 +++++++
- tools/tiffinfo.c | 4 ++--
- 2 files changed, 9 insertions(+), 2 deletions(-)
-
-diff --git a/tools/tiffinfo.c b/tools/tiffinfo.c
-index b02c7d46bed0..4d58055de85c 100644
---- a/tools/tiffinfo.c
-+++ b/tools/tiffinfo.c
-@@ -417,7 +417,7 @@ TIFFReadRawData(TIFF* tif, int bitrev)
- uint64* stripbc=NULL;
-
- TIFFGetField(tif, TIFFTAG_STRIPBYTECOUNTS, &stripbc);
-- if (nstrips > 0) {
-+ if (stripbc != NULL && nstrips > 0) {
- uint32 bufsize = (uint32) stripbc[0];
- tdata_t buf = _TIFFmalloc(bufsize);
- tstrip_t s;
---
-2.12.0
-