40#define COMMON_ERRMODE 3
41#define FREE_ERRORMODE 2
42#define STORE_ERRMODE 1
45#define SANITIZER_INTERFACE_ATTRIBUTE
46#define ATTRIBUTE_NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
48#define LMS_POOL_RESIZE(size) ((size) / 17 * 16)
49#define LMS_ADDR_ALIGN(p) (((UINTPTR)(p) + sizeof(UINTPTR) - 1) & ~((UINTPTR)(sizeof(UINTPTR) - 1)))
51#define LMS_SHADOW_ACCESSABLE 0x00
52#define LMS_SHADOW_AFTERFREE 0x03
53#define LMS_SHADOW_REDZONE 0x02
54#define LMS_SHADOW_PAINT 0x01
55#define LMS_SHADOW_MASK 0x03
57#define LMS_SHADOW_BITS_PER_CELL 2
58#define LMS_MEM_BYTES_PER_SHADOW_CELL 4
59#define LMS_SHADOW_U8_CELL_NUM 4
60#define LMS_SHADOW_U8_REFER_BYTES 16
62#define LMS_SHADOW_ACCESSABLE_U8 0x00
63#define LMS_SHADOW_AFTERFREE_U8 0xFF
64#define LMS_SHADOW_REDZONE_U8 0xAA
65#define LMS_SHADOW_MASK_U8 0xFF
66#define LMS_SHADOW_PAINT_U8 0x55
68#define MEM_REGION_SIZE_1 1
69#define MEM_REGION_SIZE_2 2
70#define MEM_REGION_SIZE_4 4
71#define MEM_REGION_SIZE_8 8
72#define MEM_REGION_SIZE_16 16
VOID __asan_load2_noabort(UINTPTR p)
VOID __asan_store16_noabort(UINTPTR p)
VOID __asan_store4_noabort(UINTPTR p)
VOID __asan_loadN_noabort(UINTPTR p, UINT32 size)
VOID __asan_load8_noabort(UINTPTR p)
VOID __asan_store1_noabort(UINTPTR p)
VOID __asan_storeN_noabort(UINTPTR p, UINT32 size)
VOID __asan_store2_noabort(UINTPTR p)
VOID __asan_load16_noabort(UINTPTR p)
VOID __asan_handle_no_return(VOID)
#define SANITIZER_INTERFACE_ATTRIBUTE
Definition los_lms_pri.h:45
VOID OsLmsCheckValid(UINTPTR checkAddr, BOOL isFreeCheck)
VOID OsLmsLosFreeMark(const VOID *curNodeStart, const VOID *nextNodeStart, UINT32 nodeHeadSize)
VOID OsLmsReportError(UINTPTR p, UINT32 size, UINT32 errMod)
VOID OsLmsSimpleMark(UINTPTR startAddr, UINTPTR endAddr, UINT32 value)
VOID __asan_store8_noabort(UINTPTR p)
VOID __asan_load4_noabort(UINTPTR p)
VOID __asan_load1_noabort(UINTPTR p)
VOID OsLmsPrintPoolListInfo(VOID)
VOID OsLmsLosMallocMark(const VOID *curNodeStart, const VOID *nextNodeStart, UINT32 nodeHeadSize)
#define VOID
Definition los_typedef.h:88
unsigned int UINTPTR
Definition los_typedef.h:74
unsigned int UINT32
Definition los_typedef.h:52
size_t BOOL
Definition los_typedef.h:83
Definition los_lms_pri.h:83
UINTPTR shadowAddr
Definition los_lms_pri.h:85
UINT32 shadowOffset
Definition los_lms_pri.h:86
UINT32 shadowValue
Definition los_lms_pri.h:87
UINTPTR memAddr
Definition los_lms_pri.h:84
Definition los_lms_pri.h:90
Definition los_lms_pri.h:74
UINT32 shadowSize
Definition los_lms_pri.h:80
UINTPTR shadowStart
Definition los_lms_pri.h:79
LOS_DL_LIST node
Definition los_lms_pri.h:75
UINT32 used
Definition los_lms_pri.h:76
UINTPTR poolAddr
Definition los_lms_pri.h:77
UINT32 poolSize
Definition los_lms_pri.h:78