12 #ifndef ROC_CORE_MEMORY_OPS_H_
13 #define ROC_CORE_MEMORY_OPS_H_
46 Pattern_BeforeUse = 0x7a,
47 Pattern_AfterUse = 0x7d,
48 Pattern_Canary = 0x7b,
static bool check_canary(void *data, size_t size)
Check canary memory.
static void poison_before_use(void *data, size_t size)
Poison memory that is going to be used. Helps catching uninitialized access bugs.
static void poison_after_use(void *data, size_t size)
Poison memory that is no more used. Helps catching use after free bugs.
static void prepare_canary(void *data, size_t size)
Prepare canary memory. Helps catching buffer overflow/underflow bugs.
Commonly used types and functions.