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 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f4d40868fc4dcfd5db4999149b13fea3902c8883 (diff) |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions