Release Notes - v0.216.2
v0.216.2
Section titled “v0.216.2”Title: Improve decoding safety and protocol compatibility
Version: v0.216.2
This release strengthens decoding safeguards, bounds resource use for untrusted data, improves message replay handling, and preserves compatibility for selected Shelley and Byron data.
New Features
Section titled “New Features”-
Established a shared CBOR item budget and a limit of
65536items for each composite map key. The decoder now rejects keys that exceed the budget before processing them. -
Refined diagnostic output limits by weighting the allowance according to node structure and separating structural bytes from byte and text payloads. Saturating arithmetic keeps allowance calculations within their supported range.
-
Enabled per-connection message submission replay protection using
Config.MaxReplayEntries. Connections now filter IDs that they have already delivered. -
Expanded governance result parsing to grow arrays and maps as data arrives. The decoder now rejects duplicate map keys without preallocating from a declared count.
Bug Fixes
Section titled “Bug Fixes”-
Stopped DRep duplicate detection from sizing its tracking map using declared CBOR map counts. This limits allocation from attacker-controlled declarations.
-
Added validation for Byron extra-body data and definite-list lengths before decoding, limiting allocation from invalid declarations.
-
Streamlined
cbor.ListLengthso it counts list items without retaining the raw message for each item. -
Sized Byron raw array and map entry capacity using the declared item count instead of the encoded byte length.
-
Checked rational and pool-margin array lengths before decoding, including tagged rationals.
-
Validated local message rejection-reason arrays before decoding. The decoder accepts type values from
0through3, permits an optional text or null message, and rejects extra elements. -
Restored access to deprecated Shelley local-state queries
4and21after their former negotiated version upper bounds. -
Preserved Shelley genesis pool reward-account credentials, network identity, and tagged relay shapes for byte-exact certificate round trips.
Full Changelog: v0.216.1…v0.216.2
Release: v0.216.2
Docs authored by Doc Holiday