Skip to content

Commit 128ade0

Browse files
committed
Merge bitcoin/bitcoin#30725: fuzz: fix timeout in crypto_fschacha20poly1305
8dec4e1 fuzz: fix timeout in `crypto_fschacha20poly1305` (brunoerg) Pull request description: Fixes #30505 This PR fixes a timeout in `crypto_fschacha20poly1305` by reducing the number of iterations. I left it running for a while and noticed it speeds up the target and do not impact coverage. ACKs for top commit: maflcko: lgtm ACK 8dec4e1 stratospher: ACK 8dec4e1. saw similar coverage stats (these are from different machines, saw more similar from same machine). Tree-SHA512: 66cd689f10f09cf880c1f2c77aa481336a95a7e10b655d156b2dc9cd38165670000019a6fb3775485ccb5cce248939a52a31ebd755a6befed6274cc841d21d97
2 parents f4a1091 + 8dec4e1 commit 128ade0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/fuzz/crypto_chacha20poly1305.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ FUZZ_TARGET(crypto_fschacha20poly1305)
130130
// data).
131131
InsecureRandomContext rng(provider.ConsumeIntegral<uint64_t>());
132132

133-
LIMITED_WHILE(provider.ConsumeBool(), 10000)
133+
LIMITED_WHILE(provider.ConsumeBool(), 100)
134134
{
135135
// Mode:
136136
// - Bit 0: whether to use single-plain Encrypt/Decrypt; otherwise use a split at prefix.

0 commit comments

Comments
 (0)