diff options
| author | Rajkumar Veer <rveer@mvista.com> | 2017-11-03 21:35:16 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-05 22:39:48 +0000 |
| commit | 18a0ad760c14bc0d2bba5d3a34998ca1e3654081 (patch) | |
| tree | 0b530c326d724ad14e08f094dee62f1a179e41ae /meta/recipes-multimedia/libtiff | |
| parent | 0d5277acc3b5cdc0985a457e333edb2f6b7fc4bd (diff) | |
| download | poky-18a0ad760c14bc0d2bba5d3a34998ca1e3654081.tar.gz | |
tiff: Security fix for CVE-2016-10271
(From OE-Core rev: d358e9bda3dcbdcfff7008804099f89f97f8bf79)
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/recipes-multimedia/libtiff')
| -rw-r--r-- | meta/recipes-multimedia/libtiff/files/CVE-2016-10271.patch | 30 | ||||
| -rw-r--r-- | meta/recipes-multimedia/libtiff/tiff_4.0.7.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/libtiff/files/CVE-2016-10271.patch b/meta/recipes-multimedia/libtiff/files/CVE-2016-10271.patch new file mode 100644 index 0000000000..4fe5bcd6c7 --- /dev/null +++ b/meta/recipes-multimedia/libtiff/files/CVE-2016-10271.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 9657bbe3cdce4aaa90e07d50c1c70ae52da0ba6a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: erouault <erouault> | ||
| 3 | Date: Sat, 3 Dec 2016 11:35:56 +0000 | ||
| 4 | Subject: [PATCH] * tools/tiffcrop.c: fix readContigStripsIntoBuffer() in -i | ||
| 5 | (ignore) mode so that the output buffer is correctly incremented to avoid | ||
| 6 | write outside bounds. Reported by Agostino Sarubbo. Fixes | ||
| 7 | http://bugzilla.maptools.org/show_bug.cgi?id=2620 | ||
| 8 | |||
| 9 | Upstream-Status: Backport | ||
| 10 | CVE: CVE-2016-10271 | ||
| 11 | Signed-off-by: Rajkumar Veer <rveer@mvista.com> | ||
| 12 | |||
| 13 | --- | ||
| 14 | ChangeLog | 7 +++++++ | ||
| 15 | tools/tiffcrop.c | 2 +- | ||
| 16 | 2 files changed, 8 insertions(+), 1 deletion(-) | ||
| 17 | |||
| 18 | Index: tiff-4.0.7/tools/tiffcrop.c | ||
| 19 | =================================================================== | ||
| 20 | --- tiff-4.0.7.orig/tools/tiffcrop.c | ||
| 21 | +++ tiff-4.0.7/tools/tiffcrop.c | ||
| 22 | @@ -3698,7 +3698,7 @@ static int readContigStripsIntoBuffer (T | ||
| 23 | (unsigned long) strip, (unsigned long)rows); | ||
| 24 | return 0; | ||
| 25 | } | ||
| 26 | - bufp += bytes_read; | ||
| 27 | + bufp += stripsize; | ||
| 28 | } | ||
| 29 | |||
| 30 | return 1; | ||
diff --git a/meta/recipes-multimedia/libtiff/tiff_4.0.7.bb b/meta/recipes-multimedia/libtiff/tiff_4.0.7.bb index e60cbb564f..48f7986698 100644 --- a/meta/recipes-multimedia/libtiff/tiff_4.0.7.bb +++ b/meta/recipes-multimedia/libtiff/tiff_4.0.7.bb | |||
| @@ -11,6 +11,7 @@ SRC_URI = "http://download.osgeo.org/libtiff/tiff-${PV}.tar.gz \ | |||
| 11 | file://CVE-2017-9936.patch \ | 11 | file://CVE-2017-9936.patch \ |
| 12 | file://CVE-2017-10688.patch \ | 12 | file://CVE-2017-10688.patch \ |
| 13 | file://CVE-2017-11335.patch \ | 13 | file://CVE-2017-11335.patch \ |
| 14 | file://CVE-2016-10271.patch \ | ||
| 14 | " | 15 | " |
| 15 | 16 | ||
| 16 | SRC_URI[md5sum] = "77ae928d2c6b7fb46a21c3a29325157b" | 17 | SRC_URI[md5sum] = "77ae928d2c6b7fb46a21c3a29325157b" |
