diff options
| author | Robert Richter <[email protected]> | 2011-12-07 09:02:52 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2011-12-23 18:57:41 +0000 |
| commit | 002c4fd92d772becf8745b9cbcebe5c95fe6dad0 (patch) | |
| tree | c1e740bbefb3a91ee64315a419835cd28540bb35 /tools/perf/util/scripting-engines/trace-event-perl.c | |
| parent | perf tools: Continue processing header on unknown features (diff) | |
| download | kernel-002c4fd92d772becf8745b9cbcebe5c95fe6dad0.tar.gz kernel-002c4fd92d772becf8745b9cbcebe5c95fe6dad0.zip | |
perf tools: Fix out-of-bound access to struct perf_session
If filename is NULL there is an out-of-bound access to struct
perf_session if it would be used with perf_session__open(). Shouldn't
actually happen in current implementation as filename is always !NULL.
Fixing this by always null-terminating filename.
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Robert Richter <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions
