]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix minor off-by-one error.
authorNicholas Nethercote <n.nethercote@gmail.com>
Sat, 11 Sep 2004 23:27:09 +0000 (23:27 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Sat, 11 Sep 2004 23:27:09 +0000 (23:27 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2701

coregrind/vg_mylibc.c

index 66b57d5e280a550b28e0daface9dd7c124609dc5..fa64220bf5fa1349a7f2c8d65220e59cf4ea32cb 100644 (file)
@@ -282,7 +282,7 @@ void* VG_(mmap)( void* start, UInt length,
    // Check it ended up in the right place.
    if (!VG_(is_kerror)(res)) {
       if (flags & VKI_MAP_CLIENT) {
-         vg_assert(VG_(client_base) <= res && res+length < VG_(client_end));
+         vg_assert(VG_(client_base) <= res && res+length <= VG_(client_end));
       } else {
          vg_assert(VG_(valgrind_base) <= res && res+length-1 <= VG_(valgrind_last));
       }