]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Increase the size of the alternate stack. It was too small.
authorFlorian Krohm <florian@eich-krohm.de>
Mon, 16 Mar 2015 22:03:42 +0000 (22:03 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Mon, 16 Mar 2015 22:03:42 +0000 (22:03 +0000)
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

memcheck/tests/sigaltstack.c

index 526a99aa5b6dbefc0494162cf567e05b0b6e49f7..8cc6956c21efc15402564dd7bbabe47909ceb48a 100644 (file)
@@ -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.