[ASan] Use a non-null altstack.ss_size when disabling sigaltstack on Darwin.

llvm-svn: 207220
This commit is contained in:
Alexander Potapenko 2014-04-25 10:39:41 +00:00
parent 672df15122
commit 623c989eea
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ void UnsetAlternateSignalStack() {
stack_t altstack, oldstack;
altstack.ss_sp = 0;
altstack.ss_flags = SS_DISABLE;
altstack.ss_size = 0;
altstack.ss_size = kAltStackSize; // Some sane value required on Darwin.
CHECK_EQ(0, sigaltstack(&altstack, &oldstack));
UnmapOrDie(oldstack.ss_sp, oldstack.ss_size);
}