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
sched::clone
Reproduced on Debian 5.19.11:
use nix::sched::{clone, CloneFlags}; fn main() { let mut bytes = [0u8; 1024]; let cb = Box::new(|| 0isize) as Box<dyn FnMut() -> isize>; let _ = clone(cb, &mut bytes[1024..], CloneFlags::CLONE_VM, None); for byte in bytes { assert_eq!(byte, 0); } }
Output:
thread 'main' panicked at 'assertion failed: `(left == right)` left: `48`, right: `0`', src/main.rs:8:9 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace *** stack smashing detected ***: terminated Segmentation fault
This function should be unsafe to call. Related: #360
The text was updated successfully, but these errors were encountered:
clone
Successfully merging a pull request may close this issue.
Reproduced on Debian 5.19.11:
Output:
This function should be unsafe to call. Related: #360
The text was updated successfully, but these errors were encountered: