Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tst_kconfig: Avoid reporting buffer overflow when parsing /proc/cmdline
When the test is run with a kernel booting with many parameters, the buffer size is often not large enough to store the complete command line. This results in a buffer overflow and the test complains with the following message: tst_kconfig.c:609: TWARN: Buffer overflowed while parsing /proc/cmdline Note: Petr point out that these configs, which are generated by toolchain will be longer than 128 chars someday, but I don't think that is the reason we need raise our parsed buffer, since tst_kcmdline_parse() was just add for popular parameter (which always pass by user and short). So far I don't see any LTP test parse a longer parameters. Fixes: 1808349 ("kconfig: add funtion to parse /proc/cmdline") Signed-off-by: Li Wang <[email protected]> Reviewed-by: Petr Vorel <[email protected]>
- Loading branch information