summaryrefslogtreecommitdiff
path: root/test/tsan/malloc_overflow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/tsan/malloc_overflow.cc')
-rw-r--r--test/tsan/malloc_overflow.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/tsan/malloc_overflow.cc b/test/tsan/malloc_overflow.cc
index 3db412978..b2f9b0f57 100644
--- a/test/tsan/malloc_overflow.cc
+++ b/test/tsan/malloc_overflow.cc
@@ -6,17 +6,17 @@
int main() {
void *p = malloc((size_t)-1);
if (p != 0)
- fprintf(stderr, "FAIL malloc(-1) = %p\n", p);
+ printf("FAIL malloc(-1) = %p\n", p);
p = malloc((size_t)-1 / 2);
if (p != 0)
- fprintf(stderr, "FAIL malloc(-1/2) = %p\n", p);
+ printf("FAIL malloc(-1/2) = %p\n", p);
p = calloc((size_t)-1, (size_t)-1);
if (p != 0)
- fprintf(stderr, "FAIL calloc(-1, -1) = %p\n", p);
+ printf("FAIL calloc(-1, -1) = %p\n", p);
p = calloc((size_t)-1 / 2, (size_t)-1 / 2);
if (p != 0)
- fprintf(stderr, "FAIL calloc(-1/2, -1/2) = %p\n", p);
- fprintf(stderr, "OK\n");
+ printf("FAIL calloc(-1/2, -1/2) = %p\n", p);
+ printf("OK\n");
}
// CHECK-NOT: FAIL