[fuzz] allow negative time jumps in txdownloadman_impl
This commit is contained in:
1 parent
917ab810d9
commit
8351562bec
1 file changed
+3
-2
@@ -430,8 +430,9 @@ FUZZ_TARGET(txdownloadman_impl, .init = initialize)
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
// Jump ahead in time
|
auto time_skip = fuzzed_data_provider.PickValueInArray(TIME_SKIPS);
|
||||||
time += fuzzed_data_provider.PickValueInArray(TIME_SKIPS);
|
if (fuzzed_data_provider.ConsumeBool()) time_skip *= -1;
|
||||||
|
time += time_skip;
|
||||||
CheckInvariants(txdownload_impl, max_orphan_count);
|
CheckInvariants(txdownload_impl, max_orphan_count);
|
||||||
}
|
}
|
||||||
// Disconnect everybody, check that all data structures are empty.
|
// Disconnect everybody, check that all data structures are empty.
|
||||||
|
|||||||
Reference in new issue
Block a user