diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2016-12-27 22:14:03 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2016-12-27 22:14:03 +0000 |
commit | a889b3d577e7ae8df44e2f76376f08e4d54f936d (patch) | |
tree | bc4da92a66b4754d7fe25042416f4a2efa98bd36 /lib/sanitizer_common/tests | |
parent | e03831887512c6391c1e0fbb26cebec2c8d1d07f (diff) |
[asan] Fix handling of %m in printf interceptor.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@290632 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/tests')
-rw-r--r-- | lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cc b/lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cc index 13918aff1..2f0494f82 100644 --- a/lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cc +++ b/lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cc @@ -256,4 +256,8 @@ TEST(SanitizerCommonInterceptors, Printf) { // Checks for wide-character strings are not implemented yet. testPrintf("%ls", 1, 0); + + testPrintf("%m", 0); + testPrintf("%m%s", 1, test_buf_size); + testPrintf("%s%m%s", 2, test_buf_size, test_buf_size); } |