OSDN Git Service
(root)
/
android-x86
/
external-alsa-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64a6d4d
)
ucm: fix out-of-array access in rval_device_lookup_init()
author
Jaroslav Kysela
<perex@perex.cz>
Wed, 2 Jun 2021 18:01:08 +0000
(20:01 +0200)
committer
Jaroslav Kysela
<perex@perex.cz>
Wed, 2 Jun 2021 18:01:08 +0000
(20:01 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/ucm_subs.c
patch
|
blob
|
history
diff --git
a/src/ucm/ucm_subs.c
b/src/ucm/ucm_subs.c
index
0bc4e63
..
20905c3
100644
(file)
--- a/
src/ucm/ucm_subs.c
+++ b/
src/ucm/ucm_subs.c
@@
-489,7
+489,7
@@
static int rval_device_lookup_init(snd_use_case_mgr_t *uc_mgr,
uc_error("Missing device type!");
return -EINVAL;
}
- for (t = types; t; t++)
+ for (t = types; t
->name
; t++)
if (strcasecmp(t->name, s) == 0)
return t->init(iter, config);
uc_error("Device type '%s' is invalid", s);