We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Functions like these are a loophole in Rust's safety:
pub fn add_cached_mapping(name: *mut i8) -> u64 {
add_cached_mapping(12345 as *mut i8);
can cause a segfault despite being "safe".
These functions should be either marked as unsafe, or take CStr, or a &'static str or &'static [u8] and checking them for \0.
unsafe
CStr
&'static str
&'static [u8]
\0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Functions like these are a loophole in Rust's safety:
can cause a segfault despite being "safe".
These functions should be either marked as
unsafe
, or takeCStr
, or a&'static str
or&'static [u8]
and checking them for\0
.The text was updated successfully, but these errors were encountered: