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:
b13b911
)
ucm: fix the possible buffer overflow (substitution)
author
Jaroslav Kysela
<perex@perex.cz>
Mon, 22 Jun 2020 07:02:11 +0000
(09:02 +0200)
committer
Jaroslav Kysela
<perex@perex.cz>
Mon, 22 Jun 2020 07:05:05 +0000
(09:05 +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
e6af502
..
293426f
100644
(file)
--- a/
src/ucm/ucm_subs.c
+++ b/
src/ucm/ucm_subs.c
@@
-334,7
+334,7
@@
__match2:
tmp = strchr(value + idsize, '}');
if (tmp) {
rvalsize = tmp - (value + idsize);
- if (rvalsize > sizeof(v2)) {
+ if (rvalsize >
=
sizeof(v2)) {
err = -ENOMEM;
goto __error;
}