aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authormerge-script <fanquake@gmail.com>2024-08-28 09:42:43 +0100
committermerge-script <fanquake@gmail.com>2024-08-28 09:42:43 +0100
commit128ade02e44547de22942a5fcc4f2d23b9ce777f (patch)
tree4775cdb5163d2710b380f10773a7e9a34bfe6088 /src/test
parentf4a10911c70eb5a603d073c499326ccd8a645963 (diff)
parent8dec4e1294a6c6895b4fe23f38cd067dc8f2352f (diff)
Merge bitcoin/bitcoin#30725: fuzz: fix timeout in `crypto_fschacha20poly1305`
8dec4e1294a6c6895b4fe23f38cd067dc8f2352f 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 8dec4e1294a6c6895b4fe23f38cd067dc8f2352f stratospher: ACK 8dec4e1. saw similar coverage stats (these are from different machines, saw more similar from same machine). Tree-SHA512: 66cd689f10f09cf880c1f2c77aa481336a95a7e10b655d156b2dc9cd38165670000019a6fb3775485ccb5cce248939a52a31ebd755a6befed6274cc841d21d97
Diffstat (limited to 'src/test')
-rw-r--r--src/test/fuzz/crypto_chacha20poly1305.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/crypto_chacha20poly1305.cpp b/src/test/fuzz/crypto_chacha20poly1305.cpp
index 2b39a06094..5e62e6f3df 100644
--- a/src/test/fuzz/crypto_chacha20poly1305.cpp
+++ b/src/test/fuzz/crypto_chacha20poly1305.cpp
@@ -130,7 +130,7 @@ FUZZ_TARGET(crypto_fschacha20poly1305)
// data).
InsecureRandomContext rng(provider.ConsumeIntegral<uint64_t>());
- LIMITED_WHILE(provider.ConsumeBool(), 10000)
+ LIMITED_WHILE(provider.ConsumeBool(), 100)
{
// Mode:
// - Bit 0: whether to use single-plain Encrypt/Decrypt; otherwise use a split at prefix.