diff options
author | Changqing Li <changqing.li@windriver.com> | 2018-08-21 16:25:45 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-23 07:50:00 +0100 |
commit | 68b5efe8b5bf5daecc3d3594fa2df159f54124a6 (patch) | |
tree | 785aad7f2ee53cd090954dc51a2520aa8fd2de03 /meta/recipes-multimedia | |
parent | 8e66763b1ca45e8e3f2725d85530f7d688ad8955 (diff) | |
download | poky-68b5efe8b5bf5daecc3d3594fa2df159f54124a6.tar.gz |
flac: patch for CVE-2017-6888
(From OE-Core rev: 82edd652860a2a1430692af402f0df639161b767)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia')
-rw-r--r-- | meta/recipes-multimedia/flac/flac/CVE-2017-6888.patch | 37 | ||||
-rw-r--r-- | meta/recipes-multimedia/flac/flac_1.3.2.bb | 4 |
2 files changed, 40 insertions, 1 deletions
diff --git a/meta/recipes-multimedia/flac/flac/CVE-2017-6888.patch b/meta/recipes-multimedia/flac/flac/CVE-2017-6888.patch new file mode 100644 index 0000000000..f01791680e --- /dev/null +++ b/meta/recipes-multimedia/flac/flac/CVE-2017-6888.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 43ecb6431077ff54e9df27f71737e6e96d6c039f Mon Sep 17 00:00:00 2001 | ||
2 | From: Changqing Li <changqing.li@windriver.com> | ||
3 | Date: Tue, 21 Aug 2018 14:46:43 +0800 | ||
4 | Subject: [PATCH] From 5f47b63e9c971e6391590caf00a0f2a5ed612e67 Mon Sep 17 | ||
5 | 00:00:00 2001 From: Erik de Castro Lopo <erikd@mega-nerd.com> Date: Sat, 8 | ||
6 | Apr 2017 18:34:49 +1000 Subject: [PATCH] stream_decoder.c: Fix a memory leak | ||
7 | |||
8 | Leak reported by Secunia Research. | ||
9 | |||
10 | Upstream-Status: Backport[https://git.xiph.org/?p=flac.git;a=commit; | ||
11 | h=4f47b63e9c971e6391590caf00a0f2a5ed612e67] | ||
12 | |||
13 | Update patch to version 1.3.2 | ||
14 | CVE: CVE-2017-6888 | ||
15 | |||
16 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
17 | --- | ||
18 | src/libFLAC/stream_decoder.c | 3 +++ | ||
19 | 1 file changed, 3 insertions(+) | ||
20 | |||
21 | diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c | ||
22 | index d364b0c..ebf93da 100644 | ||
23 | --- a/src/libFLAC/stream_decoder.c | ||
24 | +++ b/src/libFLAC/stream_decoder.c | ||
25 | @@ -1759,6 +1759,9 @@ FLAC__bool read_metadata_vorbiscomment_(FLAC__StreamDecoder *decoder, FLAC__Stre | ||
26 | } | ||
27 | memset (obj->comments[i].entry, 0, obj->comments[i].length) ; | ||
28 | if (!FLAC__bitreader_read_byte_block_aligned_no_crc(decoder->private_->input, obj->comments[i].entry, obj->comments[i].length)) { | ||
29 | + /* Current i-th entry is bad, so we delete it. */\ | ||
30 | + free (obj->comments[i].entry) ; | ||
31 | + obj->comments[i].entry = NULL ; | ||
32 | obj->num_comments = i; | ||
33 | goto skip; | ||
34 | } | ||
35 | -- | ||
36 | 2.7.4 | ||
37 | |||
diff --git a/meta/recipes-multimedia/flac/flac_1.3.2.bb b/meta/recipes-multimedia/flac/flac_1.3.2.bb index 8315ab5a2f..92ef8973e9 100644 --- a/meta/recipes-multimedia/flac/flac_1.3.2.bb +++ b/meta/recipes-multimedia/flac/flac_1.3.2.bb | |||
@@ -14,7 +14,9 @@ LIC_FILES_CHKSUM = "file://COPYING.FDL;md5=ad1419ecc56e060eccf8184a87c4285f \ | |||
14 | file://include/FLAC/all.h;beginline=65;endline=70;md5=64474f2b22e9e77b28d8b8b25c983a48" | 14 | file://include/FLAC/all.h;beginline=65;endline=70;md5=64474f2b22e9e77b28d8b8b25c983a48" |
15 | DEPENDS = "libogg" | 15 | DEPENDS = "libogg" |
16 | 16 | ||
17 | SRC_URI = "http://downloads.xiph.org/releases/flac/${BP}.tar.xz" | 17 | SRC_URI = "http://downloads.xiph.org/releases/flac/${BP}.tar.xz \ |
18 | file://CVE-2017-6888.patch " | ||
19 | |||
18 | 20 | ||
19 | SRC_URI[md5sum] = "454f1bfa3f93cc708098d7890d0499bd" | 21 | SRC_URI[md5sum] = "454f1bfa3f93cc708098d7890d0499bd" |
20 | SRC_URI[sha256sum] = "91cfc3ed61dc40f47f050a109b08610667d73477af6ef36dcad31c31a4a8d53f" | 22 | SRC_URI[sha256sum] = "91cfc3ed61dc40f47f050a109b08610667d73477af6ef36dcad31c31a4a8d53f" |