Search
lxdream.org :: lxdream :: r997:3f7b28afc4f9
lxdream 0.9.1
released Jun 29
Download Now
changeset997:3f7b28afc4f9
parent996:2e8cf0a87243
child998:1754a8c6a9cf
authornkeynes
dateTue Mar 24 11:04:51 2009 +0000 (13 years ago)
Fix off-by-one when looking up a PC right on the border-line
src/xlat/xltcache.c
1.1 --- a/src/xlat/xltcache.c Tue Mar 10 04:56:43 2009 +0000
1.2 +++ b/src/xlat/xltcache.c Tue Mar 24 11:04:51 2009 +0000
1.3 @@ -211,7 +211,7 @@
1.4 xlat_recovery_record_t records = (xlat_recovery_record_t)(&block->code[block->recover_table_offset]);
1.5 uint32_t posn;
1.6 for( posn = 1; posn < count; posn++ ) {
1.7 - if( records[posn].xlat_offset >= pc_offset ) {
1.8 + if( records[posn].xlat_offset > pc_offset ) {
1.9 return &records[posn-1];
1.10 }
1.11 }
.