1 suggestion
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.
Optional improvements
[suggestion] · Oversized structured mutations are truncated mid-record
Near libFuzzer’s length limit, a growth mutation can produce a truncated PSBT that fails framing, wasting that structured mutation.
Location: src/test/fuzz/util/psbt.cpp:478 (head).
Details and suggested fix
After MutateMaps, the mutator truncates serialized bytes to max_size without preserving record or map boundaries. A cut can split a CompactSize length prefix or value, causing the deserializer to reject the result. This can occur when inserting or duplicating a record, or growing a key or value, pushes the output past the limit. Because restore_default_len_control skips targets with a custom mutator, -len_control stays off here, and max_size is libFuzzer’s maximum input length, 4096 bytes by default. The effect is limited to inputs near that limit: the returned size meets the mutator contract, and a later ParsePSBT drops the cut map. This reduces mutation quality; it does not affect correctness. Since data is unchanged before the copy, fall back to FuzzDefaultMutate(data, size, max_size) when out.size() > max_size.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Remove the redundant
<pubkey.h>include