From: Julian Seward Date: Wed, 21 Jul 2010 12:46:44 +0000 (+0000) Subject: Make the --workaround-gcc296-bugs kludge take into account the stack X-Git-Tag: svn/VALGRIND_3_6_0~228 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af6f731ae8494b14268ea05196a2e18e4487cd63;p=thirdparty%2Fvalgrind.git Make the --workaround-gcc296-bugs kludge take into account the stack redzone size. Fixes #238208. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11217 --- diff --git a/memcheck/mc_errors.c b/memcheck/mc_errors.c index 7b22e51d9f..00f09fcecc 100644 --- a/memcheck/mc_errors.c +++ b/memcheck/mc_errors.c @@ -768,6 +768,7 @@ void MC_(pp_Error) ( Error* err ) for the --workaround-gcc296-bugs kludge. */ static Bool is_just_below_ESP( Addr esp, Addr aa ) { + esp -= VG_STACK_REDZONE_SZB; if (esp > aa && (esp - aa) <= VG_GCC296_BUG_STACK_SLOP) return True; else