diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c index 37aa8e10b..85986224d 100644 --- a/memcheck/mc_main.c +++ b/memcheck/mc_main.c @@ -2972,7 +2972,7 @@ static void mc_record_address_error ( ThreadId tid, Addr a, Int size, best we can do is to 'act normal' and mark the A bits in the normal way as noaccess, but then hide any reads from that page that get reported here. */ - if ((!isWrite) && a >= 0 && a+size <= 4096) + if ((!isWrite) && a >= 0 && a < 4096 && a+size <= 4096) return; /* Appalling AIX hack. It suppresses reads done by glink