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

Method alloc_zeroed

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

Source from the content-addressed store, hash-verified

49 }
50
51 unsafe fn alloc_zeroed(&self, layout: std::alloc::Layout) -> *mut u8 {
52 let ptr = System.alloc_zeroed(layout);
53 self.check_alloc_failure(ptr, layout);
54 ptr
55 }
56
57 unsafe fn realloc(&self, ptr: *mut u8, layout: std::alloc::Layout, new_size: usize) -> *mut u8 {
58 let new_ptr = System.realloc(ptr, layout, new_size);

Callers

nothing calls this directly

Calls 1

check_alloc_failureMethod · 0.80

Tested by

no test coverage detected