summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRajkumar Veer <rveer@mvista.com>2017-11-03 22:23:27 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-05 22:39:49 +0000
commit9f2bab84935fdd0785ab9e59e908a9694b2e61af (patch)
tree38c808369f0ba4611c67da412a645f672951f446 /meta
parent7af530d449554785b194c3b6a2f91f2ea5c3d853 (diff)
downloadpoky-9f2bab84935fdd0785ab9e59e908a9694b2e61af.tar.gz
tiff: Security fix for CVE-2017-7592
(From OE-Core rev: 4c918f46c40878ae91d8de4223c6370f8c10ec66) Signed-off-by: Rajkumar Veer <rveer@mvista.com> Signed-off-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-multimedia/libtiff/files/CVE-2017-7592.patch40
-rw-r--r--meta/recipes-multimedia/libtiff/tiff_4.0.7.bb3
2 files changed, 42 insertions, 1 deletions
diff --git a/meta/recipes-multimedia/libtiff/files/CVE-2017-7592.patch b/meta/recipes-multimedia/libtiff/files/CVE-2017-7592.patch
new file mode 100644
index 0000000000..5b80445f31
--- /dev/null
+++ b/meta/recipes-multimedia/libtiff/files/CVE-2017-7592.patch
@@ -0,0 +1,40 @@
1From 48780b4fcc425cddc4ef8ffdf536f96a0d1b313b Mon Sep 17 00:00:00 2001
2From: erouault <erouault>
3Date: Wed, 11 Jan 2017 16:38:26 +0000
4Subject: [PATCH] * libtiff/tif_getimage.c: add explicit uint32 cast in putagreytile to
5avoid UndefinedBehaviorSanitizer warning.
6Patch by Nicolas Pena.
7Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2658
8
9Upstream-Status: Backport
10CVE: CVE-2017-7592
11Signed-off-by: Rajkumar Veer <rveer@mvista.com>
12
13Index: tiff-4.0.7/ChangeLog
14===================================================================
15--- tiff-4.0.7.orig/ChangeLog 2017-04-24 14:25:10.143926025 +0530
16+++ tiff-4.0.7/ChangeLog 2017-04-24 15:20:21.291839230 +0530
17@@ -1,3 +1,10 @@
18+2017-01-11 Even Rouault <even.rouault at spatialys.com>
19+
20+ * libtiff/tif_getimage.c: add explicit uint32 cast in putagreytile to
21+ avoid UndefinedBehaviorSanitizer warning.
22+ Patch by Nicolas Pena.
23+ Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2658
24+
25 2016-12-03 Even Rouault <even.rouault at spatialys.com>
26
27 * libtiff/tif_dirread.c: modify ChopUpSingleUncompressedStrip() to
28Index: tiff-4.0.7/libtiff/tif_getimage.c
29===================================================================
30--- tiff-4.0.7.orig/libtiff/tif_getimage.c 2016-11-18 08:17:45.000000000 +0530
31+++ tiff-4.0.7/libtiff/tif_getimage.c 2017-04-24 15:17:46.671843283 +0530
32@@ -1305,7 +1305,7 @@
33 while (h-- > 0) {
34 for (x = w; x-- > 0;)
35 {
36- *cp++ = BWmap[*pp][0] & (*(pp+1) << 24 | ~A1);
37+ *cp++ = BWmap[*pp][0] & ((uint32)*(pp+1) << 24 | ~A1);
38 pp += samplesperpixel;
39 }
40 cp += toskew;
diff --git a/meta/recipes-multimedia/libtiff/tiff_4.0.7.bb b/meta/recipes-multimedia/libtiff/tiff_4.0.7.bb
index 4efe4c2db6..303eff088b 100644
--- a/meta/recipes-multimedia/libtiff/tiff_4.0.7.bb
+++ b/meta/recipes-multimedia/libtiff/tiff_4.0.7.bb
@@ -18,7 +18,8 @@ SRC_URI = "http://download.osgeo.org/libtiff/tiff-${PV}.tar.gz \
18 file://CVE-2016-10267.patch \ 18 file://CVE-2016-10267.patch \
19 file://CVE-2016-10269.patch \ 19 file://CVE-2016-10269.patch \
20 file://CVE-2016-10270.patch \ 20 file://CVE-2016-10270.patch \
21 " 21 file://CVE-2017-7592.patch \
22 "
22 23
23SRC_URI[md5sum] = "77ae928d2c6b7fb46a21c3a29325157b" 24SRC_URI[md5sum] = "77ae928d2c6b7fb46a21c3a29325157b"
24SRC_URI[sha256sum] = "9f43a2cfb9589e5cecaa66e16bf87f814c945f22df7ba600d63aac4632c4f019" 25SRC_URI[sha256sum] = "9f43a2cfb9589e5cecaa66e16bf87f814c945f22df7ba600d63aac4632c4f019"