[Sanitizer] fix errors in scanf interceptors: add support for %c and fix cases like %5d

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173440 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] fix calloc overflow in asan/tsan/msan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173441 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] improve the calloc overflow check (spotted by samsonov@)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173443 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] More fixes to scanf interceptor: stub support for %s, support for %[...] directive

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173451 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Tests for ICmp handling.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173456 91177308-0d34-0410-b5e6-96231b3b80d8
[build/clang_darwin] Don't try to run sw_vers if we don't have it.
 - Also, fix the test this is guarding, which was backwards.

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