From bef8d0ed3959b850f2520934c16d1e97dc18c04f Mon Sep 17 00:00:00 2001 From: Rajkumar Veer Date: Fri, 3 Nov 2017 21:35:16 -0700 Subject: tiff: Security fix for CVE-2016-10271 (From OE-Core rev: 8fb9a143e93de5a2de4b7d5fe2712c29d7ca4263) Signed-off-by: Rajkumar Veer Signed-off-by: Armin Kuster Signed-off-by: Richard Purdie --- .../libtiff/files/CVE-2016-10271.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 meta/recipes-multimedia/libtiff/files/CVE-2016-10271.patch (limited to 'meta/recipes-multimedia/libtiff/files') 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 @@ +From 9657bbe3cdce4aaa90e07d50c1c70ae52da0ba6a Mon Sep 17 00:00:00 2001 +From: erouault +Date: Sat, 3 Dec 2016 11:35:56 +0000 +Subject: [PATCH] * tools/tiffcrop.c: fix readContigStripsIntoBuffer() in -i + (ignore) mode so that the output buffer is correctly incremented to avoid + write outside bounds. Reported by Agostino Sarubbo. Fixes + http://bugzilla.maptools.org/show_bug.cgi?id=2620 + +Upstream-Status: Backport +CVE: CVE-2016-10271 +Signed-off-by: Rajkumar Veer + +--- + ChangeLog | 7 +++++++ + tools/tiffcrop.c | 2 +- + 2 files changed, 8 insertions(+), 1 deletion(-) + +Index: tiff-4.0.7/tools/tiffcrop.c +=================================================================== +--- tiff-4.0.7.orig/tools/tiffcrop.c ++++ tiff-4.0.7/tools/tiffcrop.c +@@ -3698,7 +3698,7 @@ static int readContigStripsIntoBuffer (T + (unsigned long) strip, (unsigned long)rows); + return 0; + } +- bufp += bytes_read; ++ bufp += stripsize; + } + + return 1; -- cgit v1.2.3-54-g00ecf