1 |
commit: 9e3ac4da44223dd11e0f948d98a42b87595c8590 |
2 |
Author: Peter Levine <plevine457 <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Sep 23 05:17:48 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 17 16:59:20 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e3ac4da |
7 |
|
8 |
media-libs/audiofile: Fix audiofile-0.3.6-CVE-2015-7747.patch |
9 |
|
10 |
Fixes audiofile-0.3.6-CVE-2015-7747.patch which |
11 |
otherwise depends on changes from a previous Debian patch. |
12 |
|
13 |
Signed-off-by: Peter Levine <plevine457 <AT> gmail.com> |
14 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
15 |
Closes: https://github.com/gentoo/gentoo/pull/9953 |
16 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
17 |
|
18 |
media-libs/audiofile/files/audiofile-0.3.6-CVE-2015-7747.patch | 7 +++---- |
19 |
1 file changed, 3 insertions(+), 4 deletions(-) |
20 |
|
21 |
diff --git a/media-libs/audiofile/files/audiofile-0.3.6-CVE-2015-7747.patch b/media-libs/audiofile/files/audiofile-0.3.6-CVE-2015-7747.patch |
22 |
index 33256395910..4f1a0d95bec 100644 |
23 |
--- a/media-libs/audiofile/files/audiofile-0.3.6-CVE-2015-7747.patch |
24 |
+++ b/media-libs/audiofile/files/audiofile-0.3.6-CVE-2015-7747.patch |
25 |
@@ -35,7 +35,7 @@ Bug-Debian: https://bugs.debian.org/801102 |
26 |
|
27 |
--- /dev/null |
28 |
+++ b/test/sixteen-stereo-to-eight-mono.c |
29 |
-@@ -0,0 +1,118 @@ |
30 |
+@@ -0,0 +1,117 @@ |
31 |
+/* |
32 |
+ Audio File Library |
33 |
+ |
34 |
@@ -95,8 +95,8 @@ Bug-Debian: https://bugs.debian.org/801102 |
35 |
+ afInitSampleFormat(setup, AF_DEFAULT_TRACK, AF_SAMPFMT_TWOSCOMP, 16); |
36 |
+ afInitChannels(setup, AF_DEFAULT_TRACK, 2); |
37 |
+ |
38 |
-+ char *testFileName; |
39 |
-+ if (!createTemporaryFile("sixteen-to-eight", &testFileName)) |
40 |
++ char testFileName[PATH_MAX]; |
41 |
++ if (!createTemporaryFile("sixteen-to-eight", testFileName)) |
42 |
+ { |
43 |
+ fprintf(stderr, "Could not create temporary file.\n"); |
44 |
+ exit(EXIT_FAILURE); |
45 |
@@ -150,7 +150,6 @@ Bug-Debian: https://bugs.debian.org/801102 |
46 |
+ |
47 |
+ afCloseFile(file); |
48 |
+ unlink(testFileName); |
49 |
-+ free(testFileName); |
50 |
+ |
51 |
+ exit(EXIT_SUCCESS); |
52 |
+} |