projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fb876a
)
Fix a gcc analyzer complaint
author
Peter Hutterer
<peter.hutterer@who-t.net>
Tue, 18 Jul 2023 06:04:51 +0000
(16:04 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Tue, 18 Jul 2023 06:05:13 +0000
(16:05 +1000)
Doesn't trigger here since we never call it with NULL but let's make
sure anyway.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/util-prop-parsers.c
patch
|
blob
|
history
diff --git
a/src/util-prop-parsers.c
b/src/util-prop-parsers.c
index 47ba3b51544f751852e807534de78e7d1040345a..2fe1b1fbea936959618717616bc018c3ea707a2d 100644
(file)
--- a/
src/util-prop-parsers.c
+++ b/
src/util-prop-parsers.c
@@
-506,7
+506,7
@@
parse_evdev_abs_prop(const char *prop, struct input_absinfo *abs)
/* basic sanity check: 5 digits for min/max, 3 for resolution, fuzz,
* flat and the colons. That's plenty, anything over is garbage */
- if (strlen(prop) > 24)
+ if (
!prop ||
strlen(prop) > 24)
goto out;
current = str;