Skip to content

struct: advance past whitespace in base64 decoding - #506

Merged
jow- merged 1 commit into
ucode-lang:masterfrom
darekhta:fix/struct-base64-whitespace
Oct 23, 2026
Merged

jow- merged 1 commit into
ucode-lang:masterfrom
darekhta:fix/struct-base64-whitespace

Conversation

@darekhta

Copy link
Copy Markdown

The whitespace loops in b64dec() never advance src_off, so the decoder can get stuck. Advance it on each iteration, just as the main loop does.

Fixes: 6350e63 ("struct: implement X and Z formats for hex and base64 coding")

The whitespace loops in b64dec() never advance src_off, so the decoder
can get stuck. Advance it on each iteration, just as the main loop does.

Fixes: 6350e63 ("struct: implement X and Z formats for hex and base64 coding")
Signed-off-by: darekhta <dmitri.arekhta@me.com>
@darekhta
darekhta force-pushed the fix/struct-base64-whitespace branch from fcdce85 to 60fe600 Compare October 23, 2026 13:33
@jow-
jow- merged commit 6cfc97f into ucode-lang:master Oct 23, 2026
2 checks passed
@jow-

jow- commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Merged, thanks!

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.

2 participants