diff options
author | Ian Rogers <[email protected]> | 2020-03-25 09:40:22 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-03-26 11:03:53 -0300 |
commit | 2a3d252dffe14582f238e21b09923e3772263123 (patch) | |
tree | cb67cbb3ee36130d7f5f7744bcd306613f173056 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | eadcaa3dfd706bbf46682c8b8b5979262443c3c3 (diff) |
perf parse-events: Add defensive NULL check
Terms may have a NULL config in which case a strcmp will SEGV. This can
be reproduced with:
perf stat -e '*/event=?,nr/' sleep 1
Add a NULL check to avoid this. This was caught by LLVM's libfuzzer.
Signed-off-by: Ian Rogers <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Jin Yao <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: John Garry <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: [email protected]
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions