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

Method check_alloc_failure

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

Source from the content-addressed store, hash-verified

17
18 #[inline(always)]
19 fn check_alloc_failure(&self, ptr: *mut u8, layout: std::alloc::Layout) {
20 if ptr.is_null() && !self.alloc_failure.swap(true, std::sync::atomic::Ordering::AcqRel) {
21 self.print_alloc_failure(layout);
22 }
23 }
24
25 #[cold]
26 #[inline(never)]

Callers 3

allocMethod · 0.80
alloc_zeroedMethod · 0.80
reallocMethod · 0.80

Calls 1

print_alloc_failureMethod · 0.80

Tested by

no test coverage detected