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

Unsafe code is allowed #17

Open
lukasvrenner opened this issue Nov 26, 2024 · 0 comments
Open

Unsafe code is allowed #17

lukasvrenner opened this issue Nov 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lukasvrenner
Copy link
Owner

TLS requires utmost security. I should #[deny(unsafe)] everywhere except for the C API. #[no_mangle] is unsafe but required. I can create a "safe" version of the public functions, and wrap them in the C functions. I ought to check the generated assembly and make sure the wrapper function is actually optimized away (an extra function call for each function would be silly).

@lukasvrenner lukasvrenner added the enhancement New feature or request label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant