From af6f731ae8494b14268ea05196a2e18e4487cd63 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Wed, 21 Jul 2010 12:46:44 +0000 Subject: [PATCH] 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 --- memcheck/mc_errors.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.47.2