diff options
author | Stephane Eranian <[email protected]> | 2012-01-20 10:49:12 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-01-24 20:31:34 -0200 |
commit | f8f4b2872295dca88339ec0c403b2217b1197353 (patch) | |
tree | 302093555d0ecb12d2f8cfb0c318ab47b6950a78 /net/lapb/lapb_timer.c | |
parent | a844d1ef09872a8b8c66d431edd1b8a943e51c7a (diff) |
perf tools: Fix strlen() bug in perf_event__synthesize_event_type()
The event_type record has a max length for the event name.
It's called MAX_EVENT_NAME.
The name may be truncated to fit the max length. But the header.size still
reflects the original name length. If that length is > MAX_EVENT_NAME, then the
header.size field is bogus. Fix this by using the length of the name after the
potential truncation.
Cc: David Ahern <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/20120120094912.GA4882@quad
Signed-off-by: Stephane Eranian <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions