-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Hello, I found a soundness issue in this crate.
Lines 9 to 11 in a836b53
| 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.
Metadata
Metadata
Assignees
Labels
No labels