Fix buffer overflow observed when running perf test.
The overflow is when trying to evaluate "1ULL << (64 - 1)" which is
resulting in -9223372036854775808 which overflows the 20 character
buffer.
If is possible this bug has been reported before but I still don't see
any fix checked in:
See: https://www.spinics.net/lists/linux-perf-users/msg07714.html
Reported-by: Michael Sartain <mikesart@fastmail.com>
Reported-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Tony Jones <tonyj@suse.de>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Fixes:
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Build | ||
| event-parse-api.c | ||
| event-parse-local.h | ||
| event-parse.c | ||
| event-parse.h | ||
| event-plugin.c | ||
| event-utils.h | ||
| kbuffer-parse.c | ||
| kbuffer.h | ||
| libtraceevent.pc.template | ||
| Makefile | ||
| parse-filter.c | ||
| parse-utils.c | ||
| plugin_cfg80211.c | ||
| plugin_function.c | ||
| plugin_hrtimer.c | ||
| plugin_jbd2.c | ||
| plugin_kmem.c | ||
| plugin_kvm.c | ||
| plugin_mac80211.c | ||
| plugin_sched_switch.c | ||
| plugin_scsi.c | ||
| plugin_xen.c | ||
| tep_strerror.c | ||
| trace-seq.c | ||
| trace-seq.h | ||