summaryrefslogtreecommitdiff
path: root/source/ap/madplay/madplay-0.15.2b-fix-segfault.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/madplay/madplay-0.15.2b-fix-segfault.patch')
-rw-r--r--source/ap/madplay/madplay-0.15.2b-fix-segfault.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/ap/madplay/madplay-0.15.2b-fix-segfault.patch b/source/ap/madplay/madplay-0.15.2b-fix-segfault.patch
new file mode 100644
index 00000000..cb9f3136
--- /dev/null
+++ b/source/ap/madplay/madplay-0.15.2b-fix-segfault.patch
@@ -0,0 +1,11 @@
+--- madplay-0.15.2b/audio_alsa.c.orig 2004-02-23 21:35:23.000000000 +0000
++++ madplay-0.15.2b/audio_alsa.c 2010-04-21 14:26:52.000000000 +0100
+@@ -241,7 +241,7 @@ int config(struct audio_config *config)
+ return -1;
+ }
+
+- buf = malloc(buffer_size);
++ buf = malloc(buffer_size*sample_size);
+ if (buf == NULL) {
+ audio_error="unable to allocate output buffer table";
+ return -1;