alsa-lib/src
Antonio Ospite 4ec907c773 ucm: fix crash when calling snd_use_case_geti() with no device or modifier
When calling snd_use_case_geti(uc_mgr, "_devstatus", &lvalue) the code
ends up calling device_status(uc_mgr, NULL), which result in a crash in
strcmp(dev->name, NULL), when there are enabled devices.

This happens because snd_use_case_geti() allows a "_devstatus"
identifier even if it's only supposed to allow the form
"_devstatus/{device}".

So check that the device name is not null.

The same issue occurs with "_modstatus", this change fixes that as well.

Signed-off-by: Antonio Ospite <ao2@ao2.it>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2016-09-29 09:55:08 +02:00
..
alisp alisp: remove alloca() from FA_pcm_info() 2016-07-14 16:33:53 +02:00
conf conf: bxtrt298: Add topology conf file for bxt 2016-08-30 16:34:08 +02:00
control ctl: use condition statements instead of assert() for new APIs to add an element set 2016-07-20 14:32:14 +02:00
hwdep conf: Add thread-safe global tree reference 2016-05-17 15:51:20 +02:00
mixer mixer: Fix rounding mode documentation 2016-08-22 11:27:03 +02:00
pcm pcm: Better understandable locking code 2016-09-02 10:13:48 +02:00
rawmidi conf: Add thread-safe global tree reference 2016-05-17 15:51:20 +02:00
seq conf: Add thread-safe global tree reference 2016-05-17 15:51:20 +02:00
timer conf: Add thread-safe global tree reference 2016-05-17 15:51:20 +02:00
topology topology: Fix the missing referenced elem ptr when merging private data 2016-07-25 11:55:35 +02:00
ucm ucm: fix crash when calling snd_use_case_geti() with no device or modifier 2016-09-29 09:55:08 +02:00
async.c async: Handle previously installed signal handler 2016-06-01 08:16:31 +02:00
conf.c conf: Add thread-safe global tree reference 2016-05-17 15:51:20 +02:00
confmisc.c conf: remove alloca() from snd_func_private_pcm_subdevice() 2016-07-14 16:33:52 +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 support building w/out System V shared memory 2015-11-05 14:37:11 +01: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