Skip to content

Document the input chunk alignment for decode_mut - #180

Open
riha-dev wants to merge 1 commit into
ia0:mainfrom
riha-dev:decode-align
Open

riha-dev wants to merge 1 commit into
ia0:mainfrom
riha-dev:decode-align

Conversation

@riha-dev

@riha-dev riha-dev commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

decode_len documents chunk-by-chunk decoding but omits the chunk alignment that encode_len documents, so an unpadded base whose bit-width does not divide 8 decodes a trailing partial group of symbols as the end of the input and silently drops the rest (BASE64_NOPAD fed AQ then AA gives [1, 0], where decode(b"AQAA") gives [1, 0, 0]); decode_align now provides that alignment, mirroring encode_align.

This branch has not been deployed

No deployments
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.

1 participant