|
91a109c0
|
2008-09-23T08:56:10
|
|
c-stack: avoid compiler optimizations when provoking overflow
* m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
recursion harder to optimize, to ensure a stack overflow occurs.
* tests/test-c-stack.c (recurse): Likewise.
Borrowed from libsigsegv.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
ae3a0d62
|
2008-08-19T21:36:21
|
|
test-c-stack: fix compilation failure on FreeBSD 5.0
* tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
headers before <sys/resource.h>.
* doc/posix-headers/sys_resource.texi (sys/resource.h): Document
the bug.
Reported by Nelson H. F. Beebe.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
d7ed5aaf
|
2008-08-11T06:33:56
|
|
test-c-stack: avoid C99-ism
* tests/test-c-stack.c (main): Fix whitespace, move declaration
before statement.
Reported by Alain Guibert.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
1eb850a1
|
2008-07-16T16:28:13
|
|
c-stack: Expose false positives when not using libsigsegv.
* modules/c-stack-tests (Files): Expand test.
* tests/test-c-stack.c (main): Add means to conditionally trigger
non-overflow SIGSEGV.
* tests/test-c-stack2.sh: New file.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
c3b5d31b
|
2008-06-17T08:43:38
|
|
Move c-stack test into testsuite.
* modules/c-stack-tests: New file.
* lib/c-stack.c [DEBUG]: Move test program...
* tests/test-c-stack.c: ...into this new file. Skip rather than
fail test if sigaltstack is lacking.
* tests/test-c-stack.sh: New driver file.
Signed-off-by: Eric Blake <ebb9@byu.net>
|