Skip to content

Commit 2e5fea2

Browse files
author
florian
committed
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 a5019735-40e9-0310-863c-91ae7b9d1cf9
1 parent 70fa42a commit 2e5fea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

memcheck/tests/sigaltstack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ int main(int argv, char** argc) {
1414
int res, i;
1515
stack_t sigstk;
1616
struct sigaction act;
17-
static const int size = SIGSTKSZ*2;
17+
static const int size = SIGSTKSZ*4;
1818
// We give EXEC permissions because this won't work on ppc32 unless you
1919
// ask for an alt stack with EXEC permissions,
2020
// since signal returning requires execution of code on the stack.

0 commit comments

Comments
 (0)