summaryrefslogtreecommitdiff
path: root/test/safestack/canary.c
AgeCommit message (Collapse)Author
2017-05-10[Safestack] Fix the canary test to catch the libc's message regarding stack ↵Ivan A. Kosarev
smashing By default glibc writes its diagnostics directly to tty so the `2>&1 |` redirection in the test doesn't catch the *** stack smashing detected *** message, which in turn breaks printing the lit's progress bar. By defining the LIBC_FATAL_STDERR_ environment variable we force glibc to direct diagnostic messages to stderr. Differential Revision: https://reviews.llvm.org/D32599 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@302628 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-12[safestack] Fix stack canary test on Mac.Evgeniy Stepanov
Disable FORTIFY_SOURCE and explicitly disable stack protector in the no-stack-protector run. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@266106 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-11[safestack] A test for stackprotector canaries.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@266006 91177308-0d34-0410-b5e6-96231b3b80d8