Andre Schulz
850c1ad41a
_alsa_card_create() can return NULL which can lead to a segmentation fault inside ALSA when NULL is passed to snd_mixer_first_elem() in _alsa_cards_refresh(). See the following crash dump excerpt: Thread 1 (Thread 0x7fe64b227780 (LWP 3320) "enlightenment"): #0 0x00007fe64c2fbd92 in __libc_pause () at ../sysdeps/unix/sysv/linux/pause.c:29 sc_ret = -514 sc_cancel_oldtype = 0 sc_ret = <optimized out> #1 <signal handler called> No locals. #2 list_empty (p=0x20) at /var/tmp/portage/media-libs/alsa-lib-1.2.9/work/alsa-lib-1.2.9/include/list.h:114 No locals. #3 snd_mixer_first_elem (mixer=mixer@entry=0x0) at /var/tmp/portage/media-libs/alsa-lib-1.2.9/work/alsa-lib-1.2.9/src/mixer/mixer.c:803 No locals. #4 0x00007fe63b2a376f in _alsa_cards_refresh () at ../enlightenment-0.25.4/src/modules/mixer/lib/backends/alsa/alsa.c:304 buf = "hw:0\000le.emix.cfg\000C\236:\245U\000\000\035\221.;\346\177\000\000`>[;\245U\000\000\260g\302:\245U\000\000pL[;\245U\000\000ʁ-:\245U\000\000/home/andre/.e/e/config/standard/module.gadman.cfg", '\000' <repeats 710 times>... mixer = 0x0 device_name = <optimized out> elem = <optimized out> source = 0x0 sink = 0x0 err = <optimized out> card_num = 0 tmp_source = 0x0 tmp_sink = 0x0 |
||
---|---|---|
.. | ||
lib | ||
backend.c | ||
backend.h | ||
e-module-mixer.edj | ||
e_mod_config.c | ||
e_mod_config.h | ||
e_mod_main.c | ||
e_mod_main.h | ||
emixer.c | ||
emixer.desktop | ||
emixer.png | ||
meson.build | ||
mixer.h | ||
module.desktop | ||
sink-icons.txt |