fuzz: Reject too large descriptor leaf sizes in scriptpubkeyman target

This commit is contained in:
MarcoFalke committed 2026-01-08 14:26:29 +01:00
1 parent fabac1b395
commit fa8d56f9f0
3 files changed
+29

No files matched your search

+1
View File
@@ -66,6 +66,7 @@ static std::optional<std::pair<WalletDescriptor, FlatSigningProvider>> CreateWal
if (IsTooExpensive(MakeUCharSpan(mocked_descriptor))) return {};
const auto desc_str{MOCKED_DESC_CONVERTER.GetDescriptor(mocked_descriptor)};
if (!desc_str.has_value()) return std::nullopt;
if (HasTooLargeLeafSize(MakeUCharSpan(*desc_str))) return {};
FlatSigningProvider keys;
std::string error;