Blender V5.0
BLI_asan.h File Reference

Go to the source code of this file.

Macros

#define __has_feature(x)
#define ASAN_POISON_MEMORY_REGION(addr, size)
#define ASAN_UNPOISON_MEMORY_REGION(addr, size)
#define BLI_asan_poison(addr, size)
#define BLI_asan_unpoison(addr, size)

Macro Definition Documentation

◆ __has_feature

#define __has_feature ( x)
Value:
0

Definition at line 13 of file BLI_asan.h.

◆ ASAN_POISON_MEMORY_REGION

#define ASAN_POISON_MEMORY_REGION ( addr,
size )
Value:
(void)(0 && ((size) != 0 && (addr) != NULL))
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition btDbvt.cpp:52

Definition at line 22 of file BLI_asan.h.

◆ ASAN_UNPOISON_MEMORY_REGION

#define ASAN_UNPOISON_MEMORY_REGION ( addr,
size )
Value:
(void)(0 && ((size) != 0 && (addr) != NULL))

Definition at line 23 of file BLI_asan.h.

◆ BLI_asan_poison

#define BLI_asan_poison ( addr,
size )
Value:
#define ASAN_POISON_MEMORY_REGION(addr, size)
Definition BLI_asan.h:22

Mark a region of memory as "freed". When using address sanitizer, accessing the given memory region will cause an use-after-poison error. This can be used to find errors when dealing with uninitialized memory in custom containers.

Definition at line 31 of file BLI_asan.h.

Referenced by BLI_memarena_alloc(), BLI_memarena_clear(), BLI_memiter_alloc(), BLI_mempool_free(), BLI_mempool_iterstep(), mempool_chunk_add(), and mempool_iter_threadsafe_step().

◆ BLI_asan_unpoison

#define BLI_asan_unpoison ( addr,
size )