[sanitizer] Unconditionally write to target buffer in *sprintf interceptors.

This does not change the default behavior (check_printf in on by default in all tools).
With this change, check_printf flag only affects format string parsing.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208290 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Update tests for r208290.

sprintf output buffer is now always sanitized.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208291 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix potential infinite recursion in a test.

If printf is intercepted (it is not atm), REAL(printf) call in the interceptor
would get redirected back to my_lgamma, resulting in infinite recursion.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208294 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Switch to common printf interceptors.

Format string parsing is disabled by default.
This is not expected to meaningfully change the tool behavior.
With this change, check_printf flag could be used to evaluate printf format
string parsing in MSan.


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