fuzz: Reject too large descriptor leaf sizes in scriptpubkeyman target

This commit is contained in:
MarcoFalke
2026-01-08 12:27:03 +01:00
parent fabac1b395
commit fa8d56f9f0
3 changed files with 29 additions and 0 deletions

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;