mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
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:
parent
fa5388fad3
commit
fab5cb9066
2 changed files with 4 additions and 2 deletions
|
|
@ -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,
|
||||
[&] {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
[&] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue