summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/libtiff/files
diff options
context:
space:
mode:
authorFan Xin <fan.xin@jp.fujitsu.com>2017-06-07 17:11:56 +0900
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-09 17:12:14 +0100
commit68e25dfade6bd00b1c7186ffc8aa944e9b1bf28a (patch)
tree61f9bc2266489883cb453442b70e84d2cd4dd7d2 /meta/recipes-multimedia/libtiff/files
parent1b9e549949f444fe4cea7d2bca0a2d3655ec5391 (diff)
downloadpoky-68e25dfade6bd00b1c7186ffc8aa944e9b1bf28a.tar.gz
libtiff: Upgrade to 4.0.8
1. Upgrade libtiff from 4.0.7 to 4.0.8 2. Delete the following patch file due to CVE-2017-5225 has been fixed in 4.0.8 libtiff-CVE-2017-5225.patch (From OE-Core rev: 825927e85933322e6f195f0d937359017a9a9b97) Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/libtiff/files')
-rw-r--r--meta/recipes-multimedia/libtiff/files/libtiff-CVE-2017-5225.patch92
1 files changed, 0 insertions, 92 deletions
diff --git a/meta/recipes-multimedia/libtiff/files/libtiff-CVE-2017-5225.patch b/meta/recipes-multimedia/libtiff/files/libtiff-CVE-2017-5225.patch
deleted file mode 100644
index 3263353a75..0000000000
--- a/meta/recipes-multimedia/libtiff/files/libtiff-CVE-2017-5225.patch
+++ /dev/null
@@ -1,92 +0,0 @@
1From a24df1e93833dfeaa69bf4d510518dc4684db64d Mon Sep 17 00:00:00 2001
2From: Li Zhou <li.zhou@windriver.com>
3Date: Wed, 25 Jan 2017 17:07:21 +0800
4Subject: [PATCH] libtiff: fix CVE-2017-5225
5
6tools/tiffcp.c: error out cleanly in cpContig2SeparateByRow
7and cpSeparate2ContigByRow if BitsPerSample != 8 to avoid heap based
8overflow. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2656 and
9http://bugzilla.maptools.org/show_bug.cgi?id=2657
10
11Upstream-Status: Backport
12CVE: CVE-2017-5225
13Signed-off-by: Li Zhou <li.zhou@windriver.com>
14---
15 ChangeLog | 7 +++++++
16 tools/tiffcp.c | 24 ++++++++++++++++++++++--
17 2 files changed, 29 insertions(+), 2 deletions(-)
18
19diff --git a/ChangeLog b/ChangeLog
20index 9b9d397..7e82795 100644
21--- a/ChangeLog
22+++ b/ChangeLog
23@@ -1,3 +1,10 @@
24+2017-01-11 Even Rouault <even.rouault at spatialys.com>
25+
26+ * tools/tiffcp.c: error out cleanly in cpContig2SeparateByRow and
27+ cpSeparate2ContigByRow if BitsPerSample != 8 to avoid heap based overflow.
28+ Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2656 and
29+ http://bugzilla.maptools.org/show_bug.cgi?id=2657
30+
31 2016-11-19 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
32
33 * libtiff 4.0.7 released.
34diff --git a/tools/tiffcp.c b/tools/tiffcp.c
35index 338a3d1..2e84577 100644
36--- a/tools/tiffcp.c
37+++ b/tools/tiffcp.c
38@@ -592,7 +592,7 @@ static copyFunc pickCopyFunc(TIFF*, TIFF*, uint16, uint16);
39 static int
40 tiffcp(TIFF* in, TIFF* out)
41 {
42- uint16 bitspersample, samplesperpixel = 1;
43+ uint16 bitspersample = 1, samplesperpixel = 1;
44 uint16 input_compression, input_photometric = PHOTOMETRIC_MINISBLACK;
45 copyFunc cf;
46 uint32 width, length;
47@@ -1068,6 +1068,16 @@ DECLAREcpFunc(cpContig2SeparateByRow)
48 register uint32 n;
49 uint32 row;
50 tsample_t s;
51+ uint16 bps = 0;
52+
53+ (void) TIFFGetField(in, TIFFTAG_BITSPERSAMPLE, &bps);
54+ if( bps != 8 )
55+ {
56+ TIFFError(TIFFFileName(in),
57+ "Error, can only handle BitsPerSample=8 in %s",
58+ "cpContig2SeparateByRow");
59+ return 0;
60+ }
61
62 inbuf = _TIFFmalloc(scanlinesizein);
63 outbuf = _TIFFmalloc(scanlinesizeout);
64@@ -1121,6 +1131,16 @@ DECLAREcpFunc(cpSeparate2ContigByRow)
65 register uint32 n;
66 uint32 row;
67 tsample_t s;
68+ uint16 bps = 0;
69+
70+ (void) TIFFGetField(in, TIFFTAG_BITSPERSAMPLE, &bps);
71+ if( bps != 8 )
72+ {
73+ TIFFError(TIFFFileName(in),
74+ "Error, can only handle BitsPerSample=8 in %s",
75+ "cpSeparate2ContigByRow");
76+ return 0;
77+ }
78
79 inbuf = _TIFFmalloc(scanlinesizein);
80 outbuf = _TIFFmalloc(scanlinesizeout);
81@@ -1763,7 +1783,7 @@ pickCopyFunc(TIFF* in, TIFF* out, uint16 bitspersample, uint16 samplesperpixel)
82 uint32 w, l, tw, tl;
83 int bychunk;
84
85- (void) TIFFGetField(in, TIFFTAG_PLANARCONFIG, &shortv);
86+ (void) TIFFGetFieldDefaulted(in, TIFFTAG_PLANARCONFIG, &shortv);
87 if (shortv != config && bitspersample != 8 && samplesperpixel > 1) {
88 fprintf(stderr,
89 "%s: Cannot handle different planar configuration w/ bits/sample != 8\n",
90--
911.9.1
92