From: Nicholas Nethercote Date: Sat, 11 Sep 2004 23:27:09 +0000 (+0000) Subject: Fix minor off-by-one error. X-Git-Tag: svn/VALGRIND_3_0_0~1584 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d90ddba44a8e8c1a835fdf927f4e64c6089468e;p=thirdparty%2Fvalgrind.git Fix minor off-by-one error. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2701 --- diff --git a/coregrind/vg_mylibc.c b/coregrind/vg_mylibc.c index 66b57d5e28..fa64220bf5 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)); }