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:
c1e25e6
)
Fix uninitialized pointer read
68/318168/1
tizen_bkup_20250204
accepted/tizen/unified/20250115.124128
accepted/tizen/unified/x/20250115.142708
author
Jihoon Kim
<jihoon48.kim@samsung.com>
Tue, 14 Jan 2025 00:25:55 +0000
(09:25 +0900)
committer
Jihoon Kim
<jihoon48.kim@samsung.com>
Tue, 14 Jan 2025 00:26:07 +0000
(09:26 +0900)
scanf uses uninitialized value namelist when calling scandir.
Change-Id: Id5b651618477a76cefd6fca8c45c90124e825360
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/quirks.c
patch
|
blob
|
history
diff --git
a/src/quirks.c
b/src/quirks.c
index e016bff31cbafee376783ff6aa9a31c93fad6f1c..ef84eea863c64e749f04deb7517f0d9971d2d587 100644
(file)
--- a/
src/quirks.c
+++ b/
src/quirks.c
@@
-1088,7
+1088,7
@@
is_data_file(const struct dirent *dir) {
static inline bool
parse_files(struct quirks_context *ctx, const char *data_path)
{
- struct dirent **namelist;
+ struct dirent **namelist
= NULL
;
int ndev = -1;
int idx = 0;