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

Method realloc

hail-fuzz/src/debug_alloc.rs:57–61  ·  view source on GitHub ↗
(&self, ptr: *mut u8, layout: std::alloc::Layout, new_size: usize)

Source from the content-addressed store, hash-verified

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);
59 self.check_alloc_failure(new_ptr, layout);
60 new_ptr
61 }
62}

Callers

nothing calls this directly

Calls 1

check_alloc_failureMethod · 0.80

Tested by

no test coverage detected