[oe-commits] [openembedded-core] 17/38: makedevs: fix invalidScanfFormatWidth to prevent overflowing usr_buf
git at git.openembedded.org
git at git.openembedded.org
Thu Oct 31 10:50:45 UTC 2019
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 471fa2fc3abbafec7237e71866d96530fcf7fbd1
Author: Frazer Leslie Clews <frazer.clews at codethink.co.uk>
AuthorDate: Mon Oct 28 17:14:49 2019 +0000
makedevs: fix invalidScanfFormatWidth to prevent overflowing usr_buf
Signed-off-by: Frazer Leslie Clews <frazer.clews at codethink.co.uk>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/recipes-devtools/makedevs/makedevs/makedevs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/makedevs/makedevs/makedevs.c b/meta/recipes-devtools/makedevs/makedevs/makedevs.c
index 01e564a..32b9872 100644
--- a/meta/recipes-devtools/makedevs/makedevs/makedevs.c
+++ b/meta/recipes-devtools/makedevs/makedevs/makedevs.c
@@ -360,7 +360,7 @@ static int interpret_table_entry(char *line)
unsigned long mode = 0755, uid = 0, gid = 0, major = 0, minor = 0;
unsigned long start = 0, increment = 1, count = 0;
- if (0 > sscanf(line, "%4095s %c %lo %40s %40s %lu %lu %lu %lu %lu", path,
+ if (0 > sscanf(line, "%4095s %c %lo %39s %39s %lu %lu %lu %lu %lu", path,
&type, &mode, usr_buf, grp_buf, &major, &minor, &start,
&increment, &count))
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list