|
From: Nicholas N. <nj...@ca...> - 2004-09-11 23:28:06
|
CVS commit by nethercote:
Fix minor off-by-one error.
MERGED FROM HEAD
M +1 -1 vg_mylibc.c 1.85.2.2
--- valgrind/coregrind/vg_mylibc.c #1.85.2.1:1.85.2.2
@@ -283,5 +283,5 @@ void* VG_(mmap)( void* start, UInt lengt
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));
|