Code Review
/
src
/
app-framework-main.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
a85c80f
)
Fix a possible access to uninitialized memory
author
José Bollo
<jose.bollo@iot.bzh>
Thu, 26 Jan 2017 20:13:11 +0000
(21:13 +0100)
committer
José Bollo
<jose.bollo@iot.bzh>
Thu, 26 Jan 2017 20:13:11 +0000
(21:13 +0100)
Change-Id: Ica1cf7d81b561ce34039e5212ed6578950f1bfdd
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/wgtpkg-files.c
patch
|
blob
|
history
diff --git
a/src/wgtpkg-files.c
b/src/wgtpkg-files.c
index
503a84b
..
cce6a04
100644
(file)
--- a/
src/wgtpkg-files.c
+++ b/
src/wgtpkg-files.c
@@
-50,7
+50,7
@@
static unsigned int what_signature(const char *name)
return UINT_MAX;
len = sizeof(distributor_file_prefix)-1;
- if (
mem
cmp(name, distributor_file_prefix, len))
+ if (
strn
cmp(name, distributor_file_prefix, len))
return 0;
if (name[len] <= '0' || name[len] > '9')
return 0;