]> 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:58 +0000 (23:27 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Sat, 11 Sep 2004 23:27:58 +0000 (23:27 +0000)
MERGED FROM HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_2_0_BRANCH@2702

coregrind/vg_mylibc.c

index fad7cd95170d6aa407806767c92f2aa0681d6f08..cc4d6df3173e50984195403527f5b63103c492b1 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));
       }