|
From: <sv...@va...> - 2015-03-16 22:03:49
|
Author: florian
Date: Mon Mar 16 22:03:42 2015
New Revision: 15018
Log:
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.
Modified:
trunk/memcheck/tests/sigaltstack.c
Modified: trunk/memcheck/tests/sigaltstack.c
==============================================================================
--- trunk/memcheck/tests/sigaltstack.c (original)
+++ trunk/memcheck/tests/sigaltstack.c Mon Mar 16 22:03:42 2015
@@ -14,7 +14,7 @@
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.
|