[BUG REPORT] Unsound pointer arithmetic and unbounded loop in check_and_clone_cstr_array
#1508 · Rust · ★ 1.2k · GPL-2.0 · updated 19d ago
描述错误 DragonOS/kernel/src/syscall/user_access.rs Lines 164 to 197 in fa4d785 pub fn check_and_clone_cstr_array(user: *const *const u8) -> Result<Vec<CString>, SystemError> { if user.is_null() { Ok(Vec::new()) } else { // debug!("check_and_clone_cstr_array: {:p}\n", user); let mut…
replies in ~0hpoints at a file
Cleared 2m ago