• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/audiofile/0008-CVE-2015-7747.patch
Bernd KuhlsBernd Kuhls committed a2ad9cf71da27 May 2017
Raw file
Source viewDiff to previous
 
1
Description: fix buffer overflow when changing both sample format and
2
 number of channels
3
Origin: https://github.com/mpruett/audiofile/pull/25
4
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/audiofile/+bug/1502721
5
Bug-Debian: https://bugs.debian.org/801102
6
​
7
Downloaded from
8
https://gitweb.gentoo.org/repo/gentoo.git/tree/media-libs/audiofile/files/audiofile-0.3.6-CVE-2015-7747.patch
9
​
10
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
11
​
12
--- a/libaudiofile/modules/ModuleState.cpp
13
+++ b/libaudiofile/modules/ModuleState.cpp
14
@@ -402,7 +402,7 @@ status ModuleState::arrange(AFfilehandle
15
        addModule(new Transform(outfc, in.pcm, out.pcm));
16
 
17
    if (in.channelCount != out.channelCount)
18
-       addModule(new ApplyChannelMatrix(infc, isReading,
19
+       addModule(new ApplyChannelMatrix(outfc, isReading,
20
            in.channelCount, out.channelCount,
21
            in.pcm.minClip, in.pcm.maxClip,
22
            track->channelMatrix));
23
--- a/test/Makefile.am
24
+++ b/test/Makefile.am
25
@@ -26,6 +26,7 @@ TESTS = \
26
    VirtualFile \
27
    floatto24 \
28
    query2 \
29
+   sixteen-stereo-to-eight-mono \
30
    sixteen-to-eight \
31
    testchannelmatrix \
32
    testdouble \
33
@@ -139,6 +140,7 @@ printmarkers_SOURCES = printmarkers.c
34
 printmarkers_LDADD = $(LIBAUDIOFILE) -lm
35
 
36
 sixteen_to_eight_SOURCES = sixteen-to-eight.c TestUtilities.cpp TestUtilities.h
37
+sixteen_stereo_to_eight_mono_SOURCES = sixteen-stereo-to-eight-mono.c TestUtilities.cpp TestUtilities.h
38
 
39
 testchannelmatrix_SOURCES = testchannelmatrix.c TestUtilities.cpp TestUtilities.h
40
 
41
--- /dev/null
42
+++ b/test/sixteen-stereo-to-eight-mono.c
43
@@ -0,0 +1,118 @@
44
+/*
45
+   Audio File Library
46
+
47
+   Copyright 2000, Silicon Graphics, Inc.
48
+
49
+   This program is free software; you can redistribute it and/or modify
50
+   it under the terms of the GNU General Public License as published by
51
+   the Free Software Foundation; either version 2 of the License, or
52
+   (at your option) any later version.
53
+
54
+   This program is distributed in the hope that it will be useful,
55
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
56
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
57
+   GNU General Public License for more details.
58
+
59
+   You should have received a copy of the GNU General Public License along
60
+   with this program; if not, write to the Free Software Foundation, Inc.,
61
+   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
62
+*/
63
+
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.