public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] perf tools: off-by-one error in map_groups__find_ams()
@ 2014-10-01 19:16 Stephane Eranian
  2014-10-02  8:36 ` Jiri Olsa
  0 siblings, 1 reply; 5+ messages in thread
From: Stephane Eranian @ 2014-10-01 19:16 UTC (permalink / raw)
  To: LKML
  Cc: Jiri Olsa, Namhyung Kim, Arnaldo Carvalho de Melo, Peter Zijlstra,
	mingo@elte.hu, David Ahern

Hi,

It appears that there is a off-by-one bug in map_groups__find_ams().
The upper-bound check in the test below should be >= because
end = start + len; The end address is outside the range.

Please confirm.


int map_groups__find_ams(struct addr_map_symbol *ams, symbol_filter_t filter)
{
                if (ams->addr < ams->map->start || ams->addr > ams->map->end) {

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-03 10:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-01 19:16 [BUG] perf tools: off-by-one error in map_groups__find_ams() Stephane Eranian
2014-10-02  8:36 ` Jiri Olsa
2014-10-02 16:40   ` Stephane Eranian
2014-10-03  8:09     ` Jiri Olsa
2014-10-03 10:07       ` Stephane Eranian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox