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

Upstream fix for invalid unsafe slice access #2

Merged
merged 1 commit into from
Sep 2, 2020
Merged

Conversation

vdarulis
Copy link
Collaborator

@vdarulis vdarulis commented Sep 2, 2020

Cherry-pick FeatureBaseDB/featurebase@8475b97 from upstream:

set cap more carefully on unsafe slices

Treating a pointer as a pointer to a large array of bytes,
or converting back the other way, isn't totally insane, but
it does create slices with an extremely large cap. This bit
me while I was trying to build the 16-byte packed Container
structure, but it's probably actually worth fixing in general.

Updates m3db/m3#2540

Treating a pointer as a pointer to a large array of bytes,
or converting back the other way, isn't totally insane, but
it does create slices with an extremely large cap. This bit
me while I was trying to build the 16-byte packed Container
structure, but it's probably actually worth fixing in general.
@vdarulis vdarulis mentioned this pull request Sep 2, 2020
@vdarulis vdarulis merged commit 4197957 into master Sep 2, 2020
@vdarulis vdarulis deleted the v/unsafe branch September 2, 2020 21:55
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.

3 participants