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

extensions: Don't check extension names for interior nuls at runtime #522

Merged
merged 2 commits into from
Dec 22, 2021

Conversation

MarijnS95
Copy link
Collaborator

This name is emitted by the generator and already known to not contain any null-characters: replace the runtime iteration+comparison (hidden behind from_bytes_with_nul) and .expect() panic with an unsafe "cast" through from_bytes_with_nul_unchecked, just like the function-pointer loaders.

This name is emitted by the generator and already known to not contain
any null-characters: replace the runtime iteration+comparison (hidden
behind `from_bytes_with_nul`) and `.expect()` panic with an `unsafe`
"cast" through `from_bytes_with_nul_unchecked`, just like the
function-pointer loaders.
@MarijnS95 MarijnS95 force-pushed the remove-runtime-string-interior-nul-check branch from 86a499c to 9a6389f Compare December 21, 2021 11:15
@MarijnS95 MarijnS95 merged commit 0ae56a0 into master Dec 22, 2021
@MarijnS95 MarijnS95 deleted the remove-runtime-string-interior-nul-check branch December 22, 2021 00:38
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.

2 participants