]> Repos - portaudio/commit
alsa: fixed Segmentation fault due to dangling pointer left by snd_lib_error_set_hand...
authordmitrykos <dmitrykos@0f58301d-fd10-0410-b4af-bbb618454e57>
Fri, 15 Oct 2010 20:39:23 +0000 (20:39 +0000)
committerdmitrykos <dmitrykos@0f58301d-fd10-0410-b4af-bbb618454e57>
Fri, 15 Oct 2010 20:39:23 +0000 (20:39 +0000)
commit96b86da500fb7ee886fe8e4f33890cfa03af3baf
tree6666e5046a60705c69bd1547e1777d2138eb48a3
parente47e43deb84959b8b6c98fe697613f3b56b3d98d
alsa: fixed Segmentation fault due to dangling pointer left by snd_lib_error_set_handler() call which set callback pointer to ALSA during PaAlsa_Initialize call. Segmentation fault happens only if application dynamically unloaded PortAudio while still using ALSA through other means, then next ALSA error which causes invocation of ALSA error handling callbacks would cause Segmentation fault. Bug reported in: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563192, and re-announced by Phil Burk on 15.10.2010.
src/hostapi/alsa/pa_linux_alsa.c