From: Julian Seward Date: Mon, 1 Sep 2014 22:31:07 +0000 (+0000) Subject: Followup to r14392 (fix up of stack bounds semantics) needed to keep X-Git-Tag: svn/VALGRIND_3_10_0~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=635ed73abb8c09e5edb461dab23b1d0a611733b3;p=thirdparty%2Fvalgrind.git Followup to r14392 (fix up of stack bounds semantics) needed to keep the darwin port from asserting at startup. Patch from PhilippeW. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14422 --- diff --git a/coregrind/m_ume/macho.c b/coregrind/m_ume/macho.c index 3dfddafea2..fbdae5bee7 100644 --- a/coregrind/m_ume/macho.c +++ b/coregrind/m_ume/macho.c @@ -405,7 +405,7 @@ handle_lcmain ( vki_uint8_t **out_stack_start, check_mmap_float(res, requested_size, "handle_lcmain"); vg_assert(!sr_isError(res)); *out_stack_start = (vki_uint8_t*)sr_Res(res); - *out_stack_end = *out_stack_start + requested_size; + *out_stack_end = *out_stack_start + requested_size - 1; Bool need_discard = False; res = VG_(am_munmap_client)(&need_discard, (Addr)*out_stack_start, HACK);