diff options
| author | Masahiro Yamada <masahiroy@kernel.org> | 2022-04-25 04:07:45 +0900 |
|---|---|---|
| committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-05-08 03:16:59 +0900 |
| commit | 15a28c7c72917f96820e9e9ccd113606363ba3ac (patch) | |
| tree | 491b81b105d4a0fad6acf8fc1aea033530302973 /scripts/checkpatch.pl | |
| parent | checksyscalls: ignore -Wunused-macros (diff) | |
| download | linux-15a28c7c72917f96820e9e9ccd113606363ba3ac.tar.gz linux-15a28c7c72917f96820e9e9ccd113606363ba3ac.zip | |
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: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
