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

merge_batcher: fix a Miri warning #396

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

teskje
Copy link
Contributor

@teskje teskje commented Jun 15, 2023

This PR fixes #395.

AFAICT, the issue was that the previous implementation wrote the new vector element before it increased the length of the vector, so the new element would be written to 'invalid' memory. Doing the lenght increase first fixes this.

This commit fixes a Miri error on `push_unchecked`.

AFAICT, the issue was that the previous implementation wrote the new
vector element before it increased the length of the vector, so the new
element would be written to 'invalid' memory. Doing the lenght increase
first fixes this.
@antiguru antiguru merged commit 90a1eac into TimelyDataflow:master Jun 15, 2023
@teskje teskje deleted the fix-push_unchecked-miri branch June 15, 2023 14:49
This was referenced Oct 29, 2024
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.

miri: Undefined Behavior: trying to retag from <20432167> for Unique permission in push_unchecked
2 participants