|
From: Nicholas N. <nj...@ca...> - 2004-09-07 23:15:44
|
CVS commit by nethercote:
minor fixes
M +2 -2 vg_mylibc.c 1.88
--- valgrind/coregrind/vg_mylibc.c #1.87:1.88
@@ -285,5 +285,5 @@ void* VG_(mmap)( void* start, UInt lengt
vg_assert(VG_(client_base) <= res && res+length < VG_(client_end));
} else {
- vg_assert(VG_(valgrind_base) <= res && res+length <= VG_(valgrind_last));
+ vg_assert(VG_(valgrind_base) <= res && res+length-1 <= VG_(valgrind_last));
}
@@ -1664,5 +1664,5 @@ void* VG_(get_memory_from_mmap) ( Int nB
if (p != ((void*)(-1))) {
- vg_assert(p >= (void*)VG_(valgrind_base) && p <= (void*)VG_(valgrind_last));
+ vg_assert((void*)VG_(valgrind_base) <= p && p <= (void*)VG_(valgrind_last));
tot_alloc += (UInt)nBytes;
if (0)
|