|
From: <sv...@va...> - 2010-07-21 12:46:53
|
Author: sewardj
Date: 2010-07-21 13:46:44 +0100 (Wed, 21 Jul 2010)
New Revision: 11217
Log:
Make the --workaround-gcc296-bugs kludge take into account the stack
redzone size. Fixes #238208.
Modified:
trunk/memcheck/mc_errors.c
Modified: trunk/memcheck/mc_errors.c
===================================================================
--- trunk/memcheck/mc_errors.c 2010-07-21 10:03:49 UTC (rev 11216)
+++ trunk/memcheck/mc_errors.c 2010-07-21 12:46:44 UTC (rev 11217)
@@ -768,6 +768,7 @@
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
|