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:
141acab
)
ucm: fix use-after-free in parse_component_seq()
author
Jaroslav Kysela
<perex@perex.cz>
Mon, 8 Jun 2020 16:17:16 +0000
(18:17 +0200)
committer
Jaroslav Kysela
<perex@perex.cz>
Mon, 8 Jun 2020 16:17:23 +0000
(18:17 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/parser.c
patch
|
blob
|
history
diff --git
a/src/ucm/parser.c
b/src/ucm/parser.c
index
b8ee243
..
161a85b
100644
(file)
--- a/
src/ucm/parser.c
+++ b/
src/ucm/parser.c
@@
-617,11
+617,12
@@
static int parse_component_seq(snd_use_case_mgr_t *uc_mgr,
return err;
cmpt_seq->device = find_component_dev(uc_mgr, val);
- free(val);
if (!cmpt_seq->device) {
uc_error("error: Cannot find component device %s", val);
+ free(val);
return -EINVAL;
}
+ free(val);
/* Parent needs its enable or disable sequence */
cmpt_seq->enable = enable;