summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2025-07-17 08:08:53 -0700
committerNamhyung Kim <namhyung@kernel.org>2025-07-22 18:17:53 -0700
commit478272d1cdd9959a6d638e9d81f70642f04290c9 (patch)
tree5606018b060cfad92b7adf53618c40286a34316f /tools/perf/util/scripting-engines/trace-event-python.c
parent129f70bd6063d701c3ecb63ecdd4b5ee520cfd45 (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