From: Nicholas Nethercote Date: Sat, 11 Sep 2004 23:27:58 +0000 (+0000) Subject: Fix minor off-by-one error. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e233f47a06238c871587c77ef65476d1220455e9;p=thirdparty%2Fvalgrind.git Fix minor off-by-one error. MERGED FROM HEAD git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_2_0_BRANCH@2702 --- diff --git a/coregrind/vg_mylibc.c b/coregrind/vg_mylibc.c index fad7cd9517..cc4d6df317 100644 --- a/coregrind/vg_mylibc.c +++ b/coregrind/vg_mylibc.c @@ -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)); }