Skip to content

fix double-decode and double-encode in byte stuffing codec#6

Open
jktjkt wants to merge 1 commit intogertvdijk:developfrom
jktjkt:fix/byte-stuffing
Open

fix double-decode and double-encode in byte stuffing codec#6
jktjkt wants to merge 1 commit intogertvdijk:developfrom
jktjkt:fix/byte-stuffing

Conversation

@jktjkt
Copy link
Copy Markdown

@jktjkt jktjkt commented Apr 11, 2026

Calling the replacement function multiple times is wrong because it looks at partially decoded data which are decoded again. We could fix that by using a different order for encode and decode, but I like this implementation much more because it will also flag unrecognized or truncated stuffing sequences.

Calling the replacement function multiple times is wrong because it
looks at partially decoded data which are decoded again. We could fix
that by using a different order for encode and decode, but I like this
implementation much more because it will also flag unrecognized or
truncated stuffing sequences.
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