|
From: <sv...@va...> - 2005-09-18 08:34:45
|
Author: sewardj
Date: 2005-09-18 09:34:38 +0100 (Sun, 18 Sep 2005)
New Revision: 4673
Log:
Fix another mremap bug.
Modified:
branches/ASPACEM/coregrind/m_aspacemgr/aspacemgr.c
Modified: branches/ASPACEM/coregrind/m_aspacemgr/aspacemgr.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/ASPACEM/coregrind/m_aspacemgr/aspacemgr.c 2005-09-18 00:25:3=
3 UTC (rev 4672)
+++ branches/ASPACEM/coregrind/m_aspacemgr/aspacemgr.c 2005-09-18 08:34:3=
8 UTC (rev 4673)
@@ -1549,7 +1549,7 @@
__NR_mremap,=20
old_addr, old_len, new_len,=20
VKI_MREMAP_MAYMOVE|VKI_MREMAP_FIXED/*move-or-fail*/,
- 0/*new_addr*/
+ new_addr
);
}
=20
@@ -3292,8 +3292,8 @@
sres =3D do_relocate_nooverlap_mapping_NO_NOTIFY( old_addr, old_len,=20
new_addr, new_len );
if (sres.isError) {
+ AM_SANITY_CHECK;
return False;
- AM_SANITY_CHECK;
}
=20
oldseg =3D nsegments[iLo];
|