implement PR17059: more visible diagnostics for stack-buffer-overflow

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189806 91177308-0d34-0410-b5e6-96231b3b80d8
Revert r185536 as it neither fixes any memory leaks, nor is it necessary (see the example from "man pthread_getattr_np")

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189810 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] attemping to fix the Windows build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189814 91177308-0d34-0410-b5e6-96231b3b80d8