alsa-lib/src
Takashi Iwai f07e9af7ee pcm: ladspa: Fix segfault due to a wrong channel reference
Because of a typo in referencing the input array in
snd_pcm_ladspa_allocate_memory(), ladpsa PCM plugin may cause a
segfault at prepare when input and and output channels are different:
 #0  0x00007ffff78623ef in snd_pcm_ladspa_allocate_memory (pcm=0x626fa0, pcm=0x626fa0, pcm=0x626fa0, ladspa=0x621ad0) at pcm_ladspa.c:753
 #1  snd_pcm_ladspa_init (pcm=0x626fa0) at pcm_ladspa.c:834
 #2  0x00007ffff7842946 in snd_pcm_plugin_prepare (pcm=0x626fa0) at pcm_plugin.c:171
 #3  0x00007ffff784290f in snd_pcm_plugin_prepare (pcm=0x62c760) at pcm_plugin.c:162
 #4  0x000000000040256a in ?? ()
 #5  0x00007ffff7222ec5 in __libc_start_main (main=0x401d80,a argc=4, argv=0x7fffffffde28, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffde18) at libc-start.c:287
 #6  0x0000000000402fdd in ?? ()

This patch corrects the wrong reference.

Reported-and-tested-by: Andreas Hartmann <mail@andreashartmann.eu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-10-02 11:55:36 +02:00
..
alisp autotools: update style 2014-02-26 08:16:22 +01:00
conf conf: topology: Add topology file for broadwell audio DSP 2015-07-30 17:10:32 +02:00
control control: Allow cset'ing specific values in the multi-value case 2015-06-10 11:56:23 +02:00
hwdep Allow hint for ctl, hwdep, timer and seq 2015-04-30 14:52:35 +02:00
mixer mixer: Fix unused parameter warnings 2014-11-21 15:22:01 +01:00
pcm pcm: ladspa: Fix segfault due to a wrong channel reference 2015-10-02 11:55:36 +02:00
rawmidi Allow hint for ctl, hwdep, timer and seq 2015-04-30 14:52:35 +02:00
seq Allow hint for ctl, hwdep, timer and seq 2015-04-30 14:52:35 +02:00
timer Allow hint for ctl, hwdep, timer and seq 2015-04-30 14:52:35 +02:00
topology topology: Add API to set a vendor specific version number 2015-09-23 10:45:52 +02:00
ucm ucm: fix some variable constness issues 2015-02-17 22:16:00 +01:00
async.c Make some static tables and strings constants. 2008-11-21 13:04:41 +01:00
conf.c Replace unsafe characters with _ in card name 2015-06-29 20:33:26 +02:00
confmisc.c Replace unsafe characters with _ in card name 2015-06-29 20:33:26 +02:00
dlmisc.c dlmisc: Remove unused label 2014-11-16 09:43:39 +01:00
error.c all places: doxygen cleanups 2013-04-08 16:42:24 +02:00
input.c Make all the remaining ops structure constants. 2008-11-21 20:48:33 +01:00
Makefile.am topology: autotools: Add build support for topology core 2015-07-30 17:10:14 +02:00
names.c Remove docs for snd_names_list and snd_names_list_free 2012-01-19 12:35:20 +01:00
output.c fix doc errors 2009-08-04 09:17:20 +02:00
shmarea.c Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-15 10:24:55 +02:00
socket.c Remove unused hostname resolution in shm plugins and aserver 2015-01-28 16:23:06 +01:00
userfile.c snd_user_file: fix memory leak 2014-11-03 17:26:00 +01:00
Versions.in Fix wrong exported functions 2008-02-04 14:15:44 +01:00