From 97f1da43aecf3298541ffee69db4eaa76e104f14 Mon Sep 17 00:00:00 2001 From: jimblandy Date: Wed, 27 Jan 2010 19:10:06 +0000 Subject: Breakpad processor: Have RetrieveNearestRange correctly return range extent. RangeMaps use the range's upper end as the key in the underlying map, but RetrieveNearestRange was treating the key as the lower end. a=jimblandy, r=mmentovai git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@501 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/processor/range_map-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/processor/range_map-inl.h') diff --git a/src/processor/range_map-inl.h b/src/processor/range_map-inl.h index 77bf7d20..a6a97e08 100644 --- a/src/processor/range_map-inl.h +++ b/src/processor/range_map-inl.h @@ -156,7 +156,7 @@ bool RangeMap::RetrieveNearestRange( *entry = iterator->second.entry(); if (entry_base) - *entry_base = iterator->first; + *entry_base = iterator->second.base(); if (entry_size) *entry_size = iterator->first - iterator->second.base() + 1; -- cgit v1.2.1