|
Blender V4.3
|
Go to the source code of this file.
Macros | |
| #define | __has_feature(x) 0 |
| #define | ASAN_POISON_MEMORY_REGION(addr, size) (void)(0 && ((size) != 0 && (addr) != NULL)) |
| #define | ASAN_UNPOISON_MEMORY_REGION(addr, size) (void)(0 && ((size) != 0 && (addr) != NULL)) |
| #define | BLI_asan_poison(addr, size) ASAN_POISON_MEMORY_REGION(addr, size) |
| #define | BLI_asan_unpoison(addr, size) ASAN_UNPOISON_MEMORY_REGION(addr, size) |
| #define __has_feature | ( | x | ) | 0 |
Definition at line 9 of file BLI_asan.h.
Definition at line 18 of file BLI_asan.h.
Definition at line 19 of file BLI_asan.h.
| #define BLI_asan_poison | ( | addr, | |
| size ) ASAN_POISON_MEMORY_REGION(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 27 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().
| #define BLI_asan_unpoison | ( | addr, | |
| size ) ASAN_UNPOISON_MEMORY_REGION(addr, size) |
Mark a region of memory as usable again.
Definition at line 32 of file BLI_asan.h.
Referenced by BLI_memarena_alloc(), BLI_memiter_alloc(), BLI_mempool_alloc(), BLI_mempool_free(), BLI_mempool_iterstep(), memarena_buf_free_all(), memiter_free_data(), memiter_set_rewind_offset(), mempool_chunk_add(), mempool_chunk_free(), and mempool_iter_threadsafe_step().