Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(decode): Fix off-by-one error #858

Merged
merged 1 commit into from
Jul 1, 2022
Merged

fix(decode): Fix off-by-one error #858

merged 1 commit into from
Jul 1, 2022

Conversation

fb55
Copy link
Owner

@fb55 fb55 commented Jul 1, 2022

Fixes #852

The bug was caused by < having the char code of ; + 1. Replacing < with <= fixes the issue.

The determineBranch function is used by parse5 and htmlparser2 as well. The fix will propagate with this patch.

@fb55 fb55 enabled auto-merge (squash) July 1, 2022 18:37
@fb55 fb55 merged commit 3b0d48b into master Jul 1, 2022
@fb55 fb55 deleted the fix-decode-off-by-one branch July 1, 2022 18:39
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.

Incorrect decoding of branch of size 1 with a value that's already encoded
1 participant