Fix potential pointer overflows (#826)
Fix some potential pointer overflows in aot applying relocations and several other places. And add sanitizer compiler flags to wamrc CMakeLists.txt to detect such issues.
This commit is contained in:
@ -64,7 +64,7 @@ typedef struct AOTObjectDataSection {
|
||||
/* Relocation info */
|
||||
typedef struct AOTRelocation {
|
||||
uint64 relocation_offset;
|
||||
uint64 relocation_addend;
|
||||
int64 relocation_addend;
|
||||
uint32 relocation_type;
|
||||
char *symbol_name;
|
||||
/* index in the symbol offset field */
|
||||
|
||||
Reference in New Issue
Block a user