Skip to content

Stream unchecked SegWit encoder output#284

Open
Abeeujah wants to merge 1 commit into
rust-bitcoin:masterfrom
Abeeujah:segwit-encoder
Open

Stream unchecked SegWit encoder output#284
Abeeujah wants to merge 1 commit into
rust-bitcoin:masterfrom
Abeeujah:segwit-encoder

Conversation

@Abeeujah

Copy link
Copy Markdown
Contributor

The unchecked encoders silently truncate output longer than the
fixed 90-byte stack buffer while still returning success.

Flush full buffers to the formatter or writer before continuing.
This preserves no-allocation encoding while ensuring unchecked
inputs are serialized completely.

closes #273

The unchecked encoders silently truncate output longer than the fixed
90-byte stack buffer while still returning success.

Flush full buffers to the formatter or writer before continuing. This
preserves no-allocation encoding while ensuring unchecked inputs are
serialized completely.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unchecked segwit encoders silently truncate output to MAX_STRING_LENGTH

1 participant