Skip to content

Release Notes - 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.

  • Established a shared CBOR item budget and a limit of 65536 items 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.

  • 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.ListLength so 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 0 through 3, permits an optional text or null message, and rejects extra elements.

  • Restored access to deprecated Shelley local-state queries 4 and 21 after 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


Doc Holiday logo

Docs authored by Doc Holiday

Edit page

Last updated: