MCPcopy Create free account
hub / github.com/F-Stack/f-stack / asan_set_zone

Function asan_set_zone

dpdk/lib/eal/common/malloc_elem.h:143–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143static inline void
144asan_set_zone(void *ptr, size_t len, uint32_t val)
145{
146 size_t offset, i;
147 void *shadow;
148 size_t zone_len = len / ASAN_SHADOW_GRAIN_SIZE;
149 if (len % ASAN_SHADOW_GRAIN_SIZE != 0)
150 zone_len += 1;
151
152 for (i = 0; i < zone_len; i++) {
153 offset = i * ASAN_SHADOW_GRAIN_SIZE;
154 shadow = ASAN_MEM_TO_SHADOW((uintptr_t)ptr + offset);
155 asan_set_shadow(shadow, val);
156 }
157}
158
159/*
160 * When the memory is released, the release mark is

Callers 4

asan_set_freezoneFunction · 0.85
asan_clear_alloczoneFunction · 0.85
malloc_heap_freeFunction · 0.85

Calls 1

asan_set_shadowFunction · 0.85

Tested by

no test coverage detected