|
From: Nicholas N. <nj...@ca...> - 2004-09-11 23:27:21
|
CVS commit by nethercote:
Fix minor off-by-one error.
M +1 -1 vg_mylibc.c 1.90
--- valgrind/coregrind/vg_mylibc.c #1.89:1.90
@@ -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));
|