Skip to content
Commit b9d1a8e9 authored by Jacob Garber's avatar Jacob Garber Committed by Masahiro Yamada
Browse files

kconfig: use snprintf for formatting pathnames



Valid pathnames will never exceed PATH_MAX, but these file names
are unsanitized and can cause buffer overflow if set incorrectly.
Use snprintf to avoid this. This was flagged during a Coverity scan
of the coreboot project, which also uses kconfig for its build system.

Signed-off-by: default avatarJacob Garber <jgarber1@ualberta.ca>
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 4cb72612
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment