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 shift in uintEncode #576

Merged
merged 1 commit into from
Dec 14, 2024
Merged

Conversation

aesx86
Copy link
Contributor

@aesx86 aesx86 commented Dec 12, 2024

This commit fixes the error which causes the result to skip null bytes. Example: uintEncode(uintDecode(0x12003400)).toString(16) returns '1234'. I think this error does not lead to a vulnerability.

It also removes the conditional which is more redundant than += 0.

@hectorm
Copy link
Owner

hectorm commented Dec 14, 2024

Sounds good, thanks for your contribution.

@hectorm hectorm closed this Dec 14, 2024
@hectorm hectorm reopened this Dec 14, 2024
@hectorm hectorm merged commit 81c56b2 into hectorm:master Dec 14, 2024
26 checks passed
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