]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Followup to r14392 (fix up of stack bounds semantics) needed to keep
authorJulian Seward <jseward@acm.org>
Mon, 1 Sep 2014 22:31:07 +0000 (22:31 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 1 Sep 2014 22:31:07 +0000 (22:31 +0000)
the darwin port from asserting at startup.  Patch from PhilippeW.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14422

coregrind/m_ume/macho.c

index 3dfddafea24cc456778e772cf0605677a772ae1c..fbdae5bee73d943592d78148aae8707c441f7583 100644 (file)
@@ -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);