]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make the --workaround-gcc296-bugs kludge take into account the stack
authorJulian Seward <jseward@acm.org>
Wed, 21 Jul 2010 12:46:44 +0000 (12:46 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 21 Jul 2010 12:46:44 +0000 (12:46 +0000)
redzone size.  Fixes #238208.

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

memcheck/mc_errors.c

index 7b22e51d9f52114f2148332ef686c4b27a5c733a..00f09fcecca8c3654b504d0824ee063de9fa12f0 100644 (file)
@@ -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