-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
At src/nuke.rs
pub fn offset<T>(&mut self, n: usize) -> *mut T {
unsafe {
self.mem.add(n) as *mut T
}
}
The publicly accessible Nuke.offset accept a parameter n and used in the pointer.add without sufficient checks. The use of result might cause memory risks.
Suggestion:
- add sufficient check to fulfill the safety requirements
- make this method unsafe to notify developer/user
Metadata
Metadata
Assignees
Labels
No labels