summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorThaison Phan <thaisonphan@google.com>2026-08-07 17:14:59 +0000
committerJakub Kicinski <kuba@kernel.org>2026-08-10 18:23:11 -0700
commit7c62c481bb43488147b8755cd92e467085ab106b (patch)
treee6d702f5c29aa2c8fca2c4420c316f3217cd92c4 /tools/perf/scripts/python/bin/stackcollapse-record
parent30dbc21f637522e9d6a0e6786fa44a12025c805b (diff)
tools: ynl: check for null ptr on dump free
Static analysis detected code paths where freeing a dump list after early errors when creating the corresponding dump list like in ynl_exec_dump() can result in a null pointer dereference since the first node in the ynl_dump_state would still be zero initialized. To prevent this potential problem updated the ynl c generation script to check for a NULL pointer before continuing to free the nodes in a dump list. Signed-off-by: Thaison Phan <thaisonphan@google.com> Link: https://patch.msgid.link/20260807171500.7188-2-thaisonphan@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions