MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / alloc

Method alloc

hail-fuzz/src/debug_alloc.rs:41–45  ·  view source on GitHub ↗
(&self, layout: std::alloc::Layout)

Source from the content-addressed store, hash-verified

39
40unsafe impl GlobalAlloc for DebuggingAlloc {
41 unsafe fn alloc(&self, layout: std::alloc::Layout) -> *mut u8 {
42 let ptr = System.alloc(layout);
43 self.check_alloc_failure(ptr, layout);
44 ptr
45 }
46
47 unsafe fn dealloc(&self, ptr: *mut u8, layout: std::alloc::Layout) {
48 System.dealloc(ptr, layout)

Callers

nothing calls this directly

Calls 1

check_alloc_failureMethod · 0.80

Tested by

no test coverage detected