From: Florian Krohm Date: Mon, 16 Mar 2015 22:03:42 +0000 (+0000) Subject: Increase the size of the alternate stack. It was too small. X-Git-Tag: svn/VALGRIND_3_11_0~574 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a9117b3d7e723223ee9a0e374018282315b3a7e;p=thirdparty%2Fvalgrind.git Increase the size of the alternate stack. It was too small. This was found by accident and there is no known way to detect an overflow of an alternate stack in the general case. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15018 --- diff --git a/memcheck/tests/sigaltstack.c b/memcheck/tests/sigaltstack.c index 526a99aa5b..8cc6956c21 100644 --- a/memcheck/tests/sigaltstack.c +++ b/memcheck/tests/sigaltstack.c @@ -14,7 +14,7 @@ int main(int argv, char** argc) { int res, i; stack_t sigstk; struct sigaction act; - static const int size = SIGSTKSZ*2; + static const int size = SIGSTKSZ*4; // We give EXEC permissions because this won't work on ppc32 unless you // ask for an alt stack with EXEC permissions, // since signal returning requires execution of code on the stack.