summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-06-11 01:45:11 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-06-11 02:04:20 +0200
commitab144c7631ebe685ffec603e48824403fcd00cdd (patch)
treeb67151692635ae2c5993d471c2a20dd8a8bdaf83 /media-sound/sox/files/sox-14.4.2-CVE-2017-11332.patch
parentmedia-sound/sox: One line per DEPEND (diff)
downloadgentoo-ab144c7631ebe685ffec603e48824403fcd00cdd.tar.gz
gentoo-ab144c7631ebe685ffec603e48824403fcd00cdd.tar.bz2
gentoo-ab144c7631ebe685ffec603e48824403fcd00cdd.zip
media-sound/sox: A truckload of security
Kindly provided by Debian packaging... Bug: https://bugs.gentoo.org/627570 Bug: https://bugs.gentoo.org/626702 Bug: https://bugs.gentoo.org/634814 Bug: https://bugs.gentoo.org/634450 Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'media-sound/sox/files/sox-14.4.2-CVE-2017-11332.patch')
-rw-r--r--media-sound/sox/files/sox-14.4.2-CVE-2017-11332.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/media-sound/sox/files/sox-14.4.2-CVE-2017-11332.patch b/media-sound/sox/files/sox-14.4.2-CVE-2017-11332.patch
new file mode 100644
index 00000000000..2b4448ed2d7
--- /dev/null
+++ b/media-sound/sox/files/sox-14.4.2-CVE-2017-11332.patch
@@ -0,0 +1,25 @@
+From 7405bcaacb1ded8c595cb751d407cf738cb26571 Mon Sep 17 00:00:00 2001
+From: Mans Rullgard <mans@mansr.com>
+Date: Sun, 5 Nov 2017 16:29:28 +0000
+Subject: [PATCH] wav: fix crash if channel count is zero (CVE-2017-11332)
+
+---
+ src/wav.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/wav.c b/src/wav.c
+index 3e80e692..3eaebfa7 100644
+--- a/src/wav.c
++++ b/src/wav.c
+@@ -712,6 +712,11 @@ static int startread(sox_format_t * ft)
+ else
+ lsx_report("User options overriding channels read in .wav header");
+
++ if (ft->signal.channels == 0) {
++ lsx_fail_errno(ft, SOX_EHDR, "Channel count is zero");
++ return SOX_EOF;
++ }
++
+ if (ft->signal.rate == 0 || ft->signal.rate == dwSamplesPerSecond)
+ ft->signal.rate = dwSamplesPerSecond;
+ else