linux-xiaomi-chiron/tools/perf/util/intel-pt-decoder
Colin Ian King c066489305 perf intel-pt: Fix off-by-one comparison on maximum code
The check for the maximum code is off-by-one; the current comparison of
a code that is INTEL_PT_ERR_MAX will cause the strlcpy to perform an out
of bounds array access on the intel_pt_err_msgs array.

Fix this with a >= comparison.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1461524203-10224-1-git-send-email-colin.king@canonical.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-04-25 20:35:59 -03:00
..
Build
gen-insn-attr-x86.awk
inat.c
inat.h
inat_types.h
insn.c x86/asm/decoder: Use explicitly signed chars 2016-03-03 16:13:00 +01:00
insn.h
intel-pt-decoder.c perf intel-pt: Fix off-by-one comparison on maximum code 2016-04-25 20:35:59 -03:00
intel-pt-decoder.h
intel-pt-insn-decoder.c
intel-pt-insn-decoder.h
intel-pt-log.c perf intel-pt: Make logging slightly more efficient 2015-09-28 16:45:26 -03:00
intel-pt-log.h perf intel-pt: Make logging slightly more efficient 2015-09-28 16:45:26 -03:00
intel-pt-pkt-decoder.c
intel-pt-pkt-decoder.h
x86-opcode-map.txt