summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorValentin Schneider <vschneid@redhat.com>2023-09-01 17:10:36 +0200
committerSteven Rostedt (Google) <rostedt@goodmis.org>2023-09-01 21:27:22 -0400
commit9af4058493c59721eccd90b7c40cad793e4e3c3b (patch)
tree57813982ac73f94a4250292cf42e1b225b844286 /tools/perf/scripts/python
parent3d07fa1dd19035eb0b13ae6697efd5caa9033e74 (diff)
tracing/filters: Fix error-handling of cpulist parsing buffer
parse_pred() allocates a string buffer to parse the user-provided cpulist, but doesn't check the allocation result nor does it free the buffer once it is no longer needed. Add an allocation check, and free the buffer as soon as it is no longer needed. Link: https://lkml.kernel.org/r/20230901151039.125186-2-vschneid@redhat.com Cc: Masami Hiramatsu <mhiramat@kernel.org> Reported-by: Steven Rostedt <rostedt@goodmis.org> Reported-by: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Valentin Schneider <vschneid@redhat.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions