diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2018-09-07 19:06:53 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2018-09-07 19:06:53 +0000 |
commit | daac7c494df970a6e5065d53809c4e09d7b5acc9 (patch) | |
tree | 3ad8f541477f9994a6eebeda54d024ed7c5d487c /patches/tiff/CVE-2018-10963.patch | |
parent | 4a81a3625510ea08b4e3c175c7ae6e327e8c2d6e (diff) | |
download | midipix_build-daac7c494df970a6e5065d53809c4e09d7b5acc9.tar.bz2 midipix_build-daac7c494df970a6e5065d53809c4e09d7b5acc9.tar.xz |
patches/tiff/CVE-{2017-{11613,17095,9935},2018-{10963,8905}}.patch: imported from aports (via Redfoxmoon.)
Diffstat (limited to 'patches/tiff/CVE-2018-10963.patch')
-rw-r--r-- | patches/tiff/CVE-2018-10963.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/patches/tiff/CVE-2018-10963.patch b/patches/tiff/CVE-2018-10963.patch new file mode 100644 index 00000000..039b7c1a --- /dev/null +++ b/patches/tiff/CVE-2018-10963.patch @@ -0,0 +1,31 @@ +From 98ed6179dec22db48f6e235d8ca9e2708bf4e71a 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 4/4] 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 c68d6d2..5d0a669 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.0 + |