aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <[email protected]>2010-04-14 18:39:42 -0400
committerArnaldo Carvalho de Melo <[email protected]>2010-04-14 17:41:21 -0300
commitd3b63d7ae04879a817bac5c0bf09749f73629d32 (patch)
tree80501b4ed6110221160b9486dd24b480c3424f41 /tools/perf/util/trace-event-scripting.c
parentdd259c5db26ccda46409dbf6efc79d5a2b259e38 (diff)
perf probe: Fix a bug that --line range can be overflow
Since line_finder.lno_s/e are signed int but line_range.start/end are unsigned int, it is possible to be overflow when converting line_range->start/end to line_finder->lno_s/e. This changes line_range.start/end and line_list.line to signed int and adds overflow checks when setting line_finder.lno_s/e. LKML-Reference: <[email protected]> Signed-off-by: Masami Hiramatsu <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions