[compiler-rt] e317c7e - [fuzzer] Fix-forward fix-forward CrossOverTest.cpp
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 29 14:29:25 PDT 2025
Author: Thurston Dang
Date: 2025-08-29T21:28:33Z
New Revision: e317c7e36f6681e88b62824b243f383dec8b106f
URL: https://github.com/llvm/llvm-project/commit/e317c7e36f6681e88b62824b243f383dec8b106f
DIFF: https://github.com/llvm/llvm-project/commit/e317c7e36f6681e88b62824b243f383dec8b106f.diff
LOG: [fuzzer] Fix-forward fix-forward CrossOverTest.cpp
https://github.com/llvm/llvm-project/pull/156103 was missing the return
value
Added:
Modified:
compiler-rt/test/fuzzer/CrossOverTest.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/fuzzer/CrossOverTest.cpp b/compiler-rt/test/fuzzer/CrossOverTest.cpp
index 6d764d0b6a6bd..eb8a8c44ad47e 100644
--- a/compiler-rt/test/fuzzer/CrossOverTest.cpp
+++ b/compiler-rt/test/fuzzer/CrossOverTest.cpp
@@ -47,7 +47,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
*NullPtr = 0;
// It's UB to read *Data when Size == 0
if (Size == 0)
- return;
+ return 0;
if (*Data == 'A')
Sink++;
if (*Data == 'Z')
More information about the llvm-commits
mailing list