summaryrefslogtreecommitdiffhomepage
path: root/patches/libflac
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2018-10-15 00:33:40 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2018-10-15 00:33:40 +0000
commit82c217b7c27fda4b48dfb79362b1ff986ab3bea4 (patch)
tree465c7f2f0e1ad2cf1f42c9f4a231c0adf320d77e /patches/libflac
parent32654d89b7b2b72e2683fa624f66f14bdacbf8d1 (diff)
downloadmidipix_build-82c217b7c27fda4b48dfb79362b1ff986ab3bea4.tar.bz2
midipix_build-82c217b7c27fda4b48dfb79362b1ff986ab3bea4.tar.xz
vars/build.vars:native_packages_deps: adds libflac v1.3.2 (via Redfoxmoon.)
patches/libflac/CVE-2017-6888.patch: via Redfoxmoon.
Diffstat (limited to 'patches/libflac')
-rw-r--r--patches/libflac/CVE-2017-6888.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/patches/libflac/CVE-2017-6888.patch b/patches/libflac/CVE-2017-6888.patch
new file mode 100644
index 00000000..7c829be9
--- /dev/null
+++ b/patches/libflac/CVE-2017-6888.patch
@@ -0,0 +1,27 @@
+From 4f47b63e9c971e6391590caf00a0f2a5ed612e67 Mon Sep 17 00:00:00 2001
+From: Erik de Castro Lopo <erikd@mega-nerd.com>
+Date: Sat, 8 Apr 2017 18:34:49 +1000
+Subject: [PATCH] stream_decoder.c: Fix a memory leak
+
+Leak reported by Secunia Research.
+---
+ src/libFLAC/stream_decoder.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c
+index 14d5fe7..a552751 100644
+--- a/src/libFLAC/stream_decoder.c
++++ b/src/libFLAC/stream_decoder.c
+@@ -1753,6 +1753,9 @@ FLAC__bool read_metadata_vorbiscomment_(FLAC__StreamDecoder *decoder, FLAC__Stre
+ }
+ memset (obj->comments[i].entry, 0, obj->comments[i].length) ;
+ if (!FLAC__bitreader_read_byte_block_aligned_no_crc(decoder->private_->input, obj->comments[i].entry, obj->comments[i].length)) {
++ /* Current i-th entry is bad, so we delete it. */
++ free (obj->comments[i].entry) ;
++ obj->comments[i].entry = NULL ;
+ obj->num_comments = i;
+ goto skip;
+ }
+--
+2.1.4
+