Hello, I found a soundness issue in this crate.
|
pub fn find<T>(l: &LinkedList<T>, k: usize) -> Option<NonNull<Node<T>>> { |
|
unsafe { do_find(l.head, k) } |
|
} |
The unsafe function called do_find() needs to meet the corresponding safety requirements of the parameters, and the developer who calls the find() function may not notice this safety requirement.
Marking them unsafe also means that callers must make sure they know what they're doing.
Hello, I found a soundness issue in this crate.
algorithm/src/ll/kth2tail.rs
Lines 9 to 11 in a836b53
The unsafe function called do_find() needs to meet the corresponding safety requirements of the parameters, and the developer who calls the find() function may not notice this safety requirement.
Marking them unsafe also means that callers must make sure they know what they're doing.