OpenCloudOS-Kernel/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 perf tools: Display build warning if x86 instruction decoder differs from kernel 2015-09-04 12:01:01 -03:00
gen-insn-attr-x86.awk perf tools: Add Intel PT instruction decoder 2015-08-17 11:11:36 -03:00
inat.c perf tools: Fix tarball build broken by pt/bts 2015-08-22 12:27:07 -03:00
inat.h perf tools: Fix tarball build broken by pt/bts 2015-08-22 12:27:07 -03:00
inat_types.h perf tools: Fix tarball build broken by pt/bts 2015-08-22 12:27:07 -03:00
insn.c x86/asm/decoder: Use explicitly signed chars 2016-03-03 16:13:00 +01:00
insn.h perf tools: Fix tarball build broken by pt/bts 2015-08-22 12:27:07 -03:00
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 perf tools: Add Intel PT support for decoding MTC packets 2015-08-24 17:46:56 -03:00
intel-pt-insn-decoder.c perf tools: Fix build on powerpc broken by pt/bts 2015-08-31 15:47:33 -03:00
intel-pt-insn-decoder.h perf tools: Add Intel PT instruction decoder 2015-08-17 11:11:36 -03:00
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 perf tools: Add new Intel PT packet definitions 2015-08-24 17:46:06 -03:00
intel-pt-pkt-decoder.h perf tools: Add new Intel PT packet definitions 2015-08-24 17:46:06 -03:00
x86-opcode-map.txt x86/insn: perf tools: Add new xsave instructions 2015-09-04 12:01:04 -03:00