[asan] fix two off-by-one errors that seem to affect only PowerPC because only there...
authorKostya Serebryany <kcc@google.com>
Fri, 18 Jan 2013 11:30:36 +0000 (11:30 +0000)
committerKostya Serebryany <kcc@google.com>
Fri, 18 Jan 2013 11:30:36 +0000 (11:30 +0000)
commit63c36bbe5e0ae8d64df8c2a3be6c0b072febdc9a
treef1b4df0cd87bb6b3ce10c002d46be0aea8309aab
parentb9eb34e10050c6362b6b804abf02e703dfd1c23b
[asan] fix two off-by-one errors that seem to affect only PowerPC because only there the stack top may be equal to the address space top. Noted by Andreas Schwab in gcc.gnu.org/bugzilla/show_bug.cgi?id=55975#c11 . Also make swapcontext interceptor a bit more robust

llvm-svn: 172807
compiler-rt/lib/asan/asan_interceptors.cc
compiler-rt/lib/asan/asan_poisoning.cc
compiler-rt/lib/asan/asan_thread.cc