From: Julian Seward Date: Wed, 13 Dec 2006 03:16:40 +0000 (+0000) Subject: Fix error in aix zeropage handling. X-Git-Tag: svn/VALGRIND_3_3_0~490 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfa95416d254761cd4b0f27692b5c896cd3b9c40;p=thirdparty%2Fvalgrind.git Fix error in aix zeropage handling. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6396 --- diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c index 37aa8e10be..85986224db 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