]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix error in aix zeropage handling.
authorJulian Seward <jseward@acm.org>
Wed, 13 Dec 2006 03:16:40 +0000 (03:16 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 13 Dec 2006 03:16:40 +0000 (03:16 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6396

memcheck/mc_main.c

index 37aa8e10be6dd93f4a5d224c1b6404099aa3ba30..85986224db0a03064e4f4b97ccb4968abda7c99a 100644 (file)
@@ -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