Skip to content

skiplist: Fix undefined behavior in arena drop#24

Merged
skyzh merged 1 commit into
tikv:masterfrom
brson:fixub
Oct 21, 2020
Merged

skiplist: Fix undefined behavior in arena drop#24
skyzh merged 1 commit into
tikv:masterfrom
brson:fixub

Conversation

@brson

@brson brson commented Oct 21, 2020

Copy link
Copy Markdown
Contributor

The Vec must be deallocated with the same pointer alignment and capacity as it
is created.

Signed-off-by: Brian Anderson andersrb@gmail.com

Found with miri cc @RalfJung

The Vec must be deallocated with the same pointer alignment and capacity as it
is created.

Signed-off-by: Brian Anderson <andersrb@gmail.com>
@BusyJay

BusyJay commented Oct 21, 2020

Copy link
Copy Markdown
Member

Perhaps we can also add miri check in CI.

@skyzh skyzh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll add miri check later

@skyzh skyzh merged commit 8809021 into tikv:master Oct 21, 2020
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