Skip to content

Fix zero-length slice taint bug#43

Merged
GNSPS merged 1 commit into
masterfrom
fix/zero-length-slice-mem-corrup
Jan 7, 2021
Merged

Fix zero-length slice taint bug#43
GNSPS merged 1 commit into
masterfrom
fix/zero-length-slice-mem-corrup

Conversation

@GNSPS
Copy link
Copy Markdown
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