summaryrefslogtreecommitdiffstats
path: root/regress/lib/libc/explicit_bzero
AgeCommit message (Collapse)AuthorFilesLines
2021-03-27Handle dynamic definition of SIGSTKSZ as of glibc 2.34 on Linux.bcook1-7/+24
ok bluhm@, inoguchi@, tb@, deraadt@
2014-07-11Fix dumb copy/paste mistake.matthew1-3/+3
Noticed testing with clang.
2014-07-11Fix explicit_bzero regress for Solaris and OS X compatibilitymatthew1-27/+68
Solaris and OS X clobber the signal stack when returning to the main stack, which caused the original testing strategy (inspecting the signal stack once we're back on the main stack) to fail. To be compatible with this behavior, the regress test now inspects the signal stack space while we're still executing on it. This is a bit iffy because we might clobber it ourselves while inspecting it, but we as long as its not completely clobbered we should be okay. thx bcook for the Solaris test account
2014-07-09Add some extra sanity checks to make sure the test functions actuallymatthew1-1/+13
run on altstack.
2014-07-09Better workaround for OS X sigaltstack() bugmatthew1-15/+20
OS X's sigaltstack() fails with ENOMEM if ss_size < MINSIGSTKSZ even if SS_DISABLE is specified in ss_flags. Rather than add code to try to cope with this stupidity, just don't bother restoring the original signal stack.
2014-07-09check if we were previously on a signal stack before restoring.bcook1-2/+3
OS X fails to restore the old signal stack because the signal stack is not enabled by default. This causes sigaltstack(2) to fail with ENOMEM as ss_size is 0, < MINSIGSTCKSZ. ok jsing@
2014-06-12Add regress test for explicit_bzero.matthew2-0/+143