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
https://github.com/bitcoin/bitcoin/issues/28812#issue-1981386486
This commit is contained in:
MarcoFalke 2023-11-14 17:30:32 +01:00
parent fa5388fad3
commit fab5cb9066
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,8 @@ FUZZ_TARGET(autofile)
AutoFile auto_file{
fuzzed_file_provider.open(),
};
LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 10000) {
LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 100)
{
CallOneOf(
fuzzed_data_provider,
[&] {

View File

@ -26,7 +26,8 @@ FUZZ_TARGET(buffered_file)
}
if (opt_buffered_file && !fuzzed_file.IsNull()) {
bool setpos_fail = false;
LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 10000) {
LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 100)
{
CallOneOf(
fuzzed_data_provider,
[&] {