|
From: <sv...@va...> - 2006-09-11 19:49:39
|
Author: sewardj
Date: 2006-09-11 20:49:35 +0100 (Mon, 11 Sep 2006)
New Revision: 6049
Log:
When unmapping segments from below aspacem_minAddr, convert them back
into SkResvns, not SkFrees. Fixes #133694. Thanks to Tom Hughes for
patch and test case.
Modified:
trunk/coregrind/m_aspacemgr/aspacemgr.c
Modified: trunk/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
--- trunk/coregrind/m_aspacemgr/aspacemgr.c 2006-09-11 17:22:54 UTC (rev =
6048)
+++ trunk/coregrind/m_aspacemgr/aspacemgr.c 2006-09-11 19:49:35 UTC (rev =
6049)
@@ -2251,6 +2251,10 @@
&& /* check previous comparison is meaningful */
aspacem_maxAddr < Addr_MAX)
seg.kind =3D SkResvn;
+ else=20
+ /* Ditto for segments from below aspacem_minAddr. */
+ if (seg.end < aspacem_minAddr && aspacem_minAddr > 0)
+ seg.kind =3D SkResvn;
else
seg.kind =3D SkFree;
=20
|