From f09414499c4717b66baa9581c641e8a636e5dcc1 Mon Sep 17 00:00:00 2001 From: Matt Morehouse Date: Fri, 7 May 2021 09:11:45 -0700 Subject: [PATCH] [libFuzzer] Fix stack-overflow-with-asan.test. Fix function return type and remove check for SUMMARY, since it doesn't seem to be output in Windows. --- compiler-rt/test/fuzzer/StackOverflowTest.cpp | 2 +- compiler-rt/test/fuzzer/stack-overflow-with-asan.test | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/test/fuzzer/StackOverflowTest.cpp b/compiler-rt/test/fuzzer/StackOverflowTest.cpp index c8d8984..1093313 100644 --- a/compiler-rt/test/fuzzer/StackOverflowTest.cpp +++ b/compiler-rt/test/fuzzer/StackOverflowTest.cpp @@ -10,7 +10,7 @@ volatile int x; volatile int y = 1; -int infinite_recursion(char *p) { +void infinite_recursion(char *p) { char *buf = nullptr; if (y) diff --git a/compiler-rt/test/fuzzer/stack-overflow-with-asan.test b/compiler-rt/test/fuzzer/stack-overflow-with-asan.test index 76be70b..ca3c2f9 100644 --- a/compiler-rt/test/fuzzer/stack-overflow-with-asan.test +++ b/compiler-rt/test/fuzzer/stack-overflow-with-asan.test @@ -1,3 +1,3 @@ -CHECK: SUMMARY: AddressSanitizer: stack-overflow +CHECK: AddressSanitizer: stack-overflow RUN: %cpp_compiler %S/StackOverflowTest.cpp -o %t-StackOverflowTest RUN: not %run %t-StackOverflowTest 2>&1 | FileCheck %s -- 2.7.4