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 zero-length slice taint bug #43

Merged
merged 1 commit into from
Jan 7, 2021
Merged

Conversation

GNSPS
Copy link
Owner

@GNSPS GNSPS commented Jan 7, 2021

Fix a bug where, in the case the memory was tainted before calling the slice method with a desired length of 0, the returned bytes array, instead of being a zero-length slice was an array of arbitrary length based on the values that previously populated that memory region.

Overall, the usage of zero-length slices should be pretty unusual and so, hopefully this bug does not have far-reaching implications. Nonetheless, please update the library to the new version ASAP if you're using it in production.

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