Skip to content

Fix ThinVec::insert for ZSTs. - #103

Open
zachs18 wants to merge 1 commit into
mozilla:mainfrom
zachs18:fix-insert-zst
Open

zachs18 wants to merge 1 commit into
mozilla:mainfrom
zachs18:fix-insert-zst

Conversation

@zachs18

@zachs18 zachs18 commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Fixes #101

Also add safety comments for some set_len_non_singleton usages and adds tests for insert.

Add safety comments for some `set_len_non_singleton` usages.
Add tests for `insert`.
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.

ThinVec::<ZST>::insert dereferences the fake length pointer (segfault from safe code)

1 participant