mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-26 15:36:19 +01:00
refactor: encapsulate vector/array keys into Obfuscation
This commit is contained in:
@@ -24,7 +24,7 @@ FUZZ_TARGET(buffered_file)
|
||||
const auto key_bytes{ConsumeFixedLengthByteVector<std::byte>(fuzzed_data_provider, Obfuscation::KEY_SIZE)};
|
||||
AutoFile fuzzed_file{
|
||||
fuzzed_file_provider.open(),
|
||||
key_bytes,
|
||||
Obfuscation{std::span{key_bytes}.first<Obfuscation::KEY_SIZE>()},
|
||||
};
|
||||
try {
|
||||
auto n_buf_size = fuzzed_data_provider.ConsumeIntegralInRange<uint64_t>(0, 4096);
|
||||
|
||||
Reference in New Issue
Block a user