diff options
author | Ian Rogers <irogers@google.com> | 2025-07-17 08:08:53 -0700 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2025-07-22 18:17:53 -0700 |
commit | 478272d1cdd9959a6d638e9d81f70642f04290c9 (patch) | |
tree | 5606018b060cfad92b7adf53618c40286a34316f /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 129f70bd6063d701c3ecb63ecdd4b5ee520cfd45 (diff) |
tools subcmd: Tighten the filename size in check_if_command_finished
FILENAME_MAX is often PATH_MAX (4kb), far more than needed for the
/proc path. Make the buffer size sufficient for the maximum integer
plus "/proc/" and "/status" with a '\0' terminator.
Fixes: 5ce42b5de461 ("tools subcmd: Add non-waitpid check_if_command_finished()")
Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250717150855.1032526-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions