From: Julian Seward Date: Mon, 13 Feb 2006 18:16:41 +0000 (+0000) Subject: Fix boundary conditions relating to stack permissions (see r5645). X-Git-Tag: svn/VALGRIND_3_2_0~268 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5927c3aed773c2f0bbd766f5b2fdb07ff254f88;p=thirdparty%2Fvalgrind.git Fix boundary conditions relating to stack permissions (see r5645). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5646 --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 4925372fd4..9faf0c5540 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -2478,7 +2478,7 @@ Int main(Int argc, HChar **argv, HChar **envp) required (VG_STACK_REDZONE_SZB). setup_client_stack() will have allocated an extra page if a red zone is required, to be on the safe side. */ - vg_assert(initial_client_SP-1 - VG_STACK_REDZONE_SZB > seg->start); + vg_assert(initial_client_SP - VG_STACK_REDZONE_SZB >= seg->start); VG_TRACK( die_mem_stack, seg->start, initial_client_SP - VG_STACK_REDZONE_SZB - seg->start ); VG_(debugLog)(2, "main", "mark stack inaccessible %010lx-%010lx\n",