summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/makedevs
diff options
context:
space:
mode:
authorFrazer Leslie Clews <frazer.clews@codethink.co.uk>2019-10-28 17:14:49 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-10-31 16:09:34 +0000
commitb12c9e256db986cdd3489de4d9489e7029f15435 (patch)
tree44d63ad8a6ad3e5147ebbff6512899fb3fcc49f8 /meta/recipes-devtools/makedevs
parent5c33b6fd8a7b1d8640254fd924939f40f071394d (diff)
downloadpoky-b12c9e256db986cdd3489de4d9489e7029f15435.tar.gz
makedevs: fix invalidScanfFormatWidth to prevent overflowing usr_buf
(From OE-Core rev: 33aefbf0fe62c5e49cac453a6e09e7b1cae60174) Signed-off-by: Frazer Leslie Clews <frazer.clews@codethink.co.uk> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/makedevs')
-rw-r--r--meta/recipes-devtools/makedevs/makedevs/makedevs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/makedevs/makedevs/makedevs.c b/meta/recipes-devtools/makedevs/makedevs/makedevs.c
index 01e564afee..32b9872932 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)
360 unsigned long mode = 0755, uid = 0, gid = 0, major = 0, minor = 0; 360 unsigned long mode = 0755, uid = 0, gid = 0, major = 0, minor = 0;
361 unsigned long start = 0, increment = 1, count = 0; 361 unsigned long start = 0, increment = 1, count = 0;
362 362
363 if (0 > sscanf(line, "%4095s %c %lo %40s %40s %lu %lu %lu %lu %lu", path, 363 if (0 > sscanf(line, "%4095s %c %lo %39s %39s %lu %lu %lu %lu %lu", path,
364 &type, &mode, usr_buf, grp_buf, &major, &minor, &start, 364 &type, &mode, usr_buf, grp_buf, &major, &minor, &start,
365 &increment, &count)) 365 &increment, &count))
366 { 366 {