|
From: <sv...@va...> - 2006-02-13 18:16:45
|
Author: sewardj
Date: 2006-02-13 18:16:41 +0000 (Mon, 13 Feb 2006)
New Revision: 5646
Log:
Fix boundary conditions relating to stack permissions (see r5645).
Modified:
trunk/coregrind/m_main.c
Modified: trunk/coregrind/m_main.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_main.c 2006-02-13 17:54:31 UTC (rev 5645)
+++ trunk/coregrind/m_main.c 2006-02-13 18:16:41 UTC (rev 5646)
@@ -2478,7 +2478,7 @@
required (VG_STACK_REDZONE_SZB). setup_client_stack() will
have allocated an extra page if a red zone is required, to be on=20
the safe side. */
- vg_assert(initial_client_SP-1 - VG_STACK_REDZONE_SZB > seg->start);
+ vg_assert(initial_client_SP - VG_STACK_REDZONE_SZB >=3D seg->start)=
;
VG_TRACK( die_mem_stack, seg->start, initial_client_SP=20
- VG_STACK_REDZONE_SZB - seg->=
start );
VG_(debugLog)(2, "main", "mark stack inaccessible %010lx-%010lx\n",
|