fuzz: [refactor] Use 100'000 digit separator in __AFL_LOOP
What changed, and why it matters
This commit is a purely cosmetic code cleanup. It changes the number 100000 to 100'000 in a fuzz-testing helper, using a C++ digit separator to make the value easier to read. It does not alter program behavior, logic, or security.
No action needed; this is a non-functional readability refactor.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch modifies src/test/fuzz/fuzz.cpp, replacing the literal 100000 with 100‘000 inside the __AFL_LOOP macro call. In C++, 100‘000 is a digit-separator syntax introduced in C++14 and is numerically identical to 100000. The change is a no-op refactor affecting only readability of the AFL persistent-mode iteration count.
Changed components
src/test/fuzz/fuzz.cppInspect captured patch +1 / −1
diff --git a/src/test/fuzz/fuzz.cpp b/src/test/fuzz/fuzz.cpp
index 7fba26dd..8c1def43 100644
--- a/src/test/fuzz/fuzz.cpp
+++ b/src/test/fuzz/fuzz.cpp
@@ -231,7 +231,7 @@ int main(int argc, char** argv)
// Enable AFL persistent mode. Requires compilation using afl-clang-fast++.
// See fuzzing.md for details.
const uint8_t* buffer = __AFL_FUZZ_TESTCASE_BUF;
- while (__AFL_LOOP(100000)) {
+ while (__AFL_LOOP(100'000)) {
size_t buffer_len = __AFL_FUZZ_TESTCASE_LEN;
test_one_input({buffer, buffer_len});
}
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.