mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-12 11:19:08 -05:00
Merge #21349: build: Fix fuzz-cuckoocache cross-compiling with DEBUG=1
52a43b0c7d
build: Fix fuzz-cuckoocache cross-compiling for Windows with DEBUG=1 (Hennadii Stepanov) Pull request description: Fix #21348. ACKs for top commit: practicalswift: Tested ACK52a43b0c7d
Tree-SHA512: 6592f829edfb740a1e9d0691acf04b2372e91b0a53ca395b08350cb0b80031d3b55fa7331bdaddf857d450eb30b605af9fe8fe02559cda19374a48f9634fae70
This commit is contained in:
commit
9dbec05600
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ FUZZ_TARGET(cuckoocache)
|
||||||
{
|
{
|
||||||
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
|
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
|
||||||
fuzzed_data_provider_ptr = &fuzzed_data_provider;
|
fuzzed_data_provider_ptr = &fuzzed_data_provider;
|
||||||
CuckooCache::cache<bool, RandomHasher> cuckoo_cache{};
|
CuckooCache::cache<int, RandomHasher> cuckoo_cache{};
|
||||||
if (fuzzed_data_provider.ConsumeBool()) {
|
if (fuzzed_data_provider.ConsumeBool()) {
|
||||||
const size_t megabytes = fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, 16);
|
const size_t megabytes = fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, 16);
|
||||||
cuckoo_cache.setup_bytes(megabytes << 20);
|
cuckoo_cache.setup_bytes(megabytes << 20);
|
||||||
|
|
Loading…
Add table
Reference in a new issue