Skip to content

Commit

Permalink
media-libs/audiofile: Fix audiofile-0.3.6-CVE-2015-7747.patch
Browse files Browse the repository at this point in the history
Fixes audiofile-0.3.6-CVE-2015-7747.patch which
otherwise depends on changes from a previous Debian patch.

Signed-off-by: Peter Levine <[email protected]>
Package-Manager: Portage-2.3.49, Repoman-2.3.10
Closes: gentoo#9953
Signed-off-by: Lars Wendler <[email protected]>
  • Loading branch information
Peter-Levine authored and Lars Wendler committed Feb 17, 2019
1 parent 8bd163a commit 9e3ac4d
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Bug-Debian: https://bugs.debian.org/801102

--- /dev/null
+++ b/test/sixteen-stereo-to-eight-mono.c
@@ -0,0 +1,118 @@
@@ -0,0 +1,117 @@
+/*
+ Audio File Library
+
Expand Down Expand Up @@ -95,8 +95,8 @@ Bug-Debian: https://bugs.debian.org/801102
+ afInitSampleFormat(setup, AF_DEFAULT_TRACK, AF_SAMPFMT_TWOSCOMP, 16);
+ afInitChannels(setup, AF_DEFAULT_TRACK, 2);
+
+ char *testFileName;
+ if (!createTemporaryFile("sixteen-to-eight", &testFileName))
+ char testFileName[PATH_MAX];
+ if (!createTemporaryFile("sixteen-to-eight", testFileName))
+ {
+ fprintf(stderr, "Could not create temporary file.\n");
+ exit(EXIT_FAILURE);
Expand Down Expand Up @@ -150,7 +150,6 @@ Bug-Debian: https://bugs.debian.org/801102
+
+ afCloseFile(file);
+ unlink(testFileName);
+ free(testFileName);
+
+ exit(EXIT_SUCCESS);
+}

0 comments on commit 9e3ac4d

Please sign in to comment.