9cf12a7d58
Before $ ./cve-check tiff using srcpkgs/tiff/cve-check. CVE: CVE-2017-17095 SEVERITY: 6.8 CVE: CVE-2017-17942 SEVERITY: 6.8 CVE: CVE-2017-18013 SEVERITY: 4.3 CVE: CVE-2018-10126 SEVERITY: 4.3 CVE: CVE-2018-10963 SEVERITY: 4.3 CVE: CVE-2018-12900 SEVERITY: 6.8 CVE: CVE-2018-5784 SEVERITY: 4.3 CVE: CVE-2018-7456 SEVERITY: 4.3 CVE: CVE-2018-8905 SEVERITY: 6.8 After $ cve-check tiff using srcpkgs/tiff/cve-check. CVE: CVE-2017-17942 SEVERITY: 6.8 CVE: CVE-2018-10126 SEVERITY: 4.3 CVE: CVE-2018-12900 SEVERITY: 6.8
31 lines
1 KiB
Diff
31 lines
1 KiB
Diff
From de144fd228e4be8aa484c3caf3d814b6fa88c6d9 Mon Sep 17 00:00:00 2001
|
|
From: Even Rouault <even.rouault@spatialys.com>
|
|
Date: Sat, 12 May 2018 14:24:15 +0200
|
|
Subject: [PATCH] TIFFWriteDirectorySec: avoid assertion. Fixes
|
|
http://bugzilla.maptools.org/show_bug.cgi?id=2795. CVE-2018-10963
|
|
|
|
---
|
|
libtiff/tif_dirwrite.c | 7 +++++--
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/libtiff/tif_dirwrite.c b/libtiff/tif_dirwrite.c
|
|
index 2430de6d0..c15a28dbd 100644
|
|
--- a/libtiff/tif_dirwrite.c
|
|
+++ b/libtiff/tif_dirwrite.c
|
|
@@ -697,8 +697,11 @@ TIFFWriteDirectorySec(TIFF* tif, int isimage, int imagedone, uint64* pdiroff)
|
|
}
|
|
break;
|
|
default:
|
|
- assert(0); /* we should never get here */
|
|
- break;
|
|
+ TIFFErrorExt(tif->tif_clientdata,module,
|
|
+ "Cannot write tag %d (%s)",
|
|
+ TIFFFieldTag(o),
|
|
+ o->field_name ? o->field_name : "unknown");
|
|
+ goto bad;
|
|
}
|
|
}
|
|
}
|
|
--
|
|
2.17.1
|
|
|