Whamcloud - gitweb
e2fsck: add maximum string length specifiers to fscanf format strings
authorTheodore Ts'o <tytso@mit.edu>
Tue, 10 Aug 2021 19:36:46 +0000 (15:36 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 10 Aug 2021 19:36:46 +0000 (15:36 -0400)
commitbe85d6c380dec129f6a9a8553290145fcd4cdf7c
treeb95e2e5ccf3f6578bd6d66c7e630345a960f41f1
parent95954ac7b4bb0ffb6dffa101ef6d575ff228dd1a
e2fsck: add maximum string length specifiers to fscanf format strings

When parsing strings from /proc/apm and /proc/acpi/ac_adapter, add
string length limits to prevent possible buffer overruns.

Addresses-Coverty-Bug: 1297496
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/unix.c