|
Blender V5.3
|
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) |
| #define __has_feature | ( | x | ) |
Definition at line 13 of file BLI_asan.hh.
| #define ASAN_POISON_MEMORY_REGION | ( | addr, | |
| size ) |
Definition at line 22 of file BLI_asan.hh.
| #define ASAN_UNPOISON_MEMORY_REGION | ( | addr, | |
| size ) |
Definition at line 23 of file BLI_asan.hh.
| #define BLI_asan_poison | ( | addr, | |
| size ) |
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.hh.
Referenced by blender::BLI_memarena_alloc(), blender::BLI_memarena_clear(), blender::BLI_mempool_free(), blender::BLI_mempool_iterstep(), blender::mempool_chunk_add(), and blender::mempool_iter_threadsafe_step().
| #define BLI_asan_unpoison | ( | addr, | |
| size ) |
Mark a region of memory as usable again.
Definition at line 36 of file BLI_asan.hh.
Referenced by blender::BLI_memarena_alloc(), blender::BLI_mempool_alloc(), blender::BLI_mempool_free(), blender::BLI_mempool_iterstep(), blender::memarena_buf_free_all(), blender::mempool_chunk_add(), blender::mempool_chunk_free(), and blender::mempool_iter_threadsafe_step().