Skip to content

Commit fab5cb9

Browse files
author
MarcoFalke
committed
fuzz: Reduce LIMITED_WHILE limit for file fuzzing
A higher limit is not needed, and only leads to timeouts, see for example the buffered_file one in bitcoin/bitcoin#28812 (comment)
1 parent fa5388f commit fab5cb9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/test/fuzz/autofile.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ FUZZ_TARGET(autofile)
2121
AutoFile auto_file{
2222
fuzzed_file_provider.open(),
2323
};
24-
LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 10000) {
24+
LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 100)
25+
{
2526
CallOneOf(
2627
fuzzed_data_provider,
2728
[&] {

src/test/fuzz/buffered_file.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ FUZZ_TARGET(buffered_file)
2626
}
2727
if (opt_buffered_file && !fuzzed_file.IsNull()) {
2828
bool setpos_fail = false;
29-
LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 10000) {
29+
LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 100)
30+
{
3031
CallOneOf(
3132
fuzzed_data_provider,
3233
[&] {

0 commit comments

Comments
 (0)