We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d67330d commit fa77183Copy full SHA for fa77183
src/test/fuzz/fuzz.h
@@ -11,6 +11,9 @@
11
#include <functional>
12
#include <string_view>
13
14
+#define LIMITED_WHILE(condition, limit) \
15
+ for (unsigned _count{limit}; (condition) && _count; --_count)
16
+
17
using FuzzBufferType = Span<const uint8_t>;
18
19
using TypeTestOneInput = std::function<void(FuzzBufferType)>;
src/test/fuzz/system.cpp
@@ -31,7 +31,8 @@ FUZZ_TARGET(system)
31
SetupHelpOptions(args_manager);
32
}
33
34
- while (fuzzed_data_provider.ConsumeBool()) {
+ LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 3000)
35
+ {
36
CallOneOf(
37
fuzzed_data_provider,
38
[&] {
0 commit comments