Skip to content
Commit 15a28c7c authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

modpost: use snprintf() instead of sprintf() for safety



Use snprintf() to avoid the potential buffer overflow, and also
check the return value to detect the too long path.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
parent f4d40868
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