aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorWang Nan <[email protected]>2015-09-01 03:29:44 +0000
committerArnaldo Carvalho de Melo <[email protected]>2015-09-01 11:33:48 -0300
commit3b27d13940c3710a1128527c43719cb0bb05d73b (patch)
tree88847c3a13e7c792c0416be0c6186d903fb57d2c /scripts/gdb/linux/modules.py
parent532026612455a4a6fd27c1b2e7111263f63218a2 (diff)
perf dwarf: Fix potential array out of bounds access
There is a problem in the dwarf-regs.c files for sh, sparc and x86 where it is possible to make an out-of-bounds array access when searching for register names. This patch fixes it by replacing '<=' to '<', so when register (number == XXX_MAX_REGS), get_arch_regstr() will return NULL. Signed-off-by: Wang Nan <[email protected]> Reviewed-by: Matt Fleming <[email protected]> Acked-by: Jiri Olsa <[email protected]> Acked-by: Masami Hiramatsu <[email protected]> Cc: David S. Miller <[email protected]> Cc: Zefan Li <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions