diff options
| author | Yang Jihong <[email protected]> | 2024-01-19 04:03:02 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2024-01-22 12:08:20 -0800 |
| commit | aff10a165201f6f60cff225083ce301ad3f5d8f1 (patch) | |
| tree | 024a383d6cc7ddd2b9fdc97497d98460958bed33 /tools/perf/scripts/python | |
| parent | 55442cc2f22d0727abfecc3a30c605f04acff4b7 (diff) | |
perf record: Fix possible incorrect free in record__switch_output()
perf_data__switch() may not assign a legal value to 'new_filename'.
In this case, 'new_filename' uses the on-stack value, which may cause a
incorrect free and unexpected result.
Fixes: 03724b2e9c45 ("perf record: Allow to limit number of reported perf.data files")
Signed-off-by: Yang Jihong <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions