summaryrefslogtreecommitdiffstats
path: root/patches/audiofile-0.3.6/0001-Fix-data-corruption-when-changing-both-sample-format.patch
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2017-09-23 14:17:05 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-09-25 15:11:46 +0200
commit5bb9b0f9f005261678875b4ac3e7b6b227e43296 (patch)
treed03c92dbed004d6b1690637aa109d8d748de588a /patches/audiofile-0.3.6/0001-Fix-data-corruption-when-changing-both-sample-format.patch
parent8ffc78431d30be26f70fed0d755e0f98d9b9369c (diff)
downloadptxdist-5bb9b0f9f005261678875b4ac3e7b6b227e43296.tar.gz
ptxdist-5bb9b0f9f005261678875b4ac3e7b6b227e43296.tar.xz
audiofile: version bump 0.3.4 -> 0.3.6
Add various patches from Debian including a gcc-7.x build fix. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/audiofile-0.3.6/0001-Fix-data-corruption-when-changing-both-sample-format.patch')
-rw-r--r--patches/audiofile-0.3.6/0001-Fix-data-corruption-when-changing-both-sample-format.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/patches/audiofile-0.3.6/0001-Fix-data-corruption-when-changing-both-sample-format.patch b/patches/audiofile-0.3.6/0001-Fix-data-corruption-when-changing-both-sample-format.patch
new file mode 100644
index 000000000..b458933a1
--- /dev/null
+++ b/patches/audiofile-0.3.6/0001-Fix-data-corruption-when-changing-both-sample-format.patch
@@ -0,0 +1,23 @@
+From: Fabrizio Gennari <fabrizio.ge@tiscali.it>
+Date: Mon, 4 Jul 2016 23:27:35 -0500
+Subject: [PATCH] Fix data corruption when changing both sample format and
+ channel count.
+
+Fix for CVE-2015-7747.
+---
+ libaudiofile/modules/ModuleState.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libaudiofile/modules/ModuleState.cpp b/libaudiofile/modules/ModuleState.cpp
+index f76c4956b2f6..0c29d7aaf0d3 100644
+--- a/libaudiofile/modules/ModuleState.cpp
++++ b/libaudiofile/modules/ModuleState.cpp
+@@ -402,7 +402,7 @@ status ModuleState::arrange(AFfilehandle file, Track *track)
+ addModule(new Transform(outfc, in.pcm, out.pcm));
+
+ if (in.channelCount != out.channelCount)
+- addModule(new ApplyChannelMatrix(infc, isReading,
++ addModule(new ApplyChannelMatrix(outfc, isReading,
+ in.channelCount, out.channelCount,
+ in.pcm.minClip, in.pcm.maxClip,
+ track->channelMatrix));