Skip to content

Commit 78c8176

Browse files
committed
[𝘀𝗽𝗿] initial version
Created using spr 1.3.4
1 parent 4d928d5 commit 78c8176

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler-rt/lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ using namespace __sanitizer;
3838
#include "sanitizer_common/sanitizer_common_interceptors_format.inc"
3939

4040
static const unsigned I = sizeof(int);
41+
static const unsigned Z = sizeof(size_t);
4142
static const unsigned L = sizeof(long);
4243
static const unsigned LL = sizeof(long long);
4344
static const unsigned S = sizeof(short);
@@ -113,6 +114,8 @@ static void testScanfNoGnuMalloc(const char *format, unsigned n, ...) {
113114

114115
TEST(SanitizerCommonInterceptors, Scanf) {
115116
testScanf("%d", 1, I);
117+
testScanf("%zx", 1, Z);
118+
testScanf("%zd", 1, Z);
116119
testScanf("%d%d%d", 3, I, I, I);
117120
testScanf("ab%u%dc", 2, I, I);
118121
testScanf("%ld", 1, L);

0 commit comments

Comments
 (0)