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

fix(serde_v8): avoid creating unsound slice reference #16189

Merged
merged 1 commit into from
Oct 8, 2022

Conversation

Nugine
Copy link
Contributor

@Nugine Nugine commented Oct 7, 2022

Related:

This commit fixes one ocurrence of unsoundness by using the newly added API (v8::String::write_utf8_uninit).

See also clippy:uninit_vec.

Note that it is not actually a bug. Avoiding unsoundness improves our code quality.

@Nugine Nugine mentioned this pull request Oct 7, 2022
@aapoalas
Copy link
Collaborator

aapoalas commented Oct 7, 2022

LGTM! Nice!

Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks

@littledivy littledivy merged commit a3432e5 into denoland:main Oct 8, 2022
bartlomieju pushed a commit that referenced this pull request Oct 17, 2022
This commit fixes one ocurrence of unsoundness by using the newly added
API (`v8::String::write_utf8_uninit`).

See also
[`clippy:uninit_vec`](https://rust-lang.github.io/rust-clippy/master/index.html#uninit_vec).

Note that it is not actually a bug. Avoiding unsoundness improves our
code quality.
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.

None yet

3 participants