• Masami Hiramatsu's avatar
    perf probe: Fix a bug that --line range can be overflow · d3b63d7a
    Masami Hiramatsu authored
    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: <20100414223942.14630.72730.stgit@localhost6.localdomain6>
    Signed-off-by: default avatarMasami Hiramatsu <mhiramat@redhat.com>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    d3b63d7a
probe-finder.c 30.3 KB