-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
This public accessible function can cause memory risk since it does not check the input address, which violates the rules specified in https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html.
Lines 68 to 70 in 403f5de
| pub fn dealloc(p: *mut u8, layout: Layout) { | |
| unsafe { HUGEPAGE_ALLOCATOR.dealloc(p, layout) } | |
| } |
Suggestion:
Consider to make it unsafe
pinkforest
Metadata
Metadata
Assignees
Labels
No labels