perf symbols: Fix array sizes for binary types arrays
authorJiri Olsa <jolsa@redhat.com>
Wed, 1 Aug 2012 12:47:57 +0000 (14:47 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 1 Aug 2012 21:42:22 +0000 (18:42 -0300)
commit028df76726c5637c6f70a064d94452808ec74f9e
tree31143c7f82b00d23b641a92015db0d6ae015a8ce
parent30f31c0a492d0c1cd64af631476697f38d6a79d4
perf symbols: Fix array sizes for binary types arrays

Following commit introduced wrong array boundaries, that could lead to
SIGSEGV.

  perf symbols: Factor DSO symtab types to generic binary types
  commit 44f24cb3156a1e7d2b6bb501b7f6153aed08994c
  Author: Jiri Olsa <jolsa@redhat.com>

Fixing to use proper array size.

Reported-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Markus Trippelsdorf <markus@trippelsdorf.de>
Link: http://lkml.kernel.org/r/1343825277-10517-1-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol.c