Fix few integer overflowing (#4161)
- fix(interpreter): correct offset calculations in wasm_loader_get_const_offset function - fix(mem-alloc): update offset calculation in gc_migrate for memory migration - add pointer-overflow sanitizer
This commit is contained in:
@ -39,7 +39,7 @@ function help()
|
||||
echo "-F set the firmware path used by qemu"
|
||||
echo "-C enable code coverage collect"
|
||||
echo "-j set the platform to test"
|
||||
echo "-T set sanitizer to use in tests(ubsan|tsan|asan)"
|
||||
echo "-T set sanitizer to use in tests(ubsan|tsan|asan|posan)"
|
||||
echo "-A use the specified wamrc command instead of building it"
|
||||
echo "-r [requirement name] [N [N ...]] specify a requirement name followed by one or more"
|
||||
echo " subrequirement IDs, if no subrequirement is specificed,"
|
||||
@ -1035,6 +1035,11 @@ function trigger()
|
||||
EXTRA_COMPILE_FLAGS+=" -DWAMR_BUILD_SANITIZER=tsan"
|
||||
fi
|
||||
|
||||
if [[ "$WAMR_BUILD_SANITIZER" == "posan" ]]; then
|
||||
echo "Setting run with posan"
|
||||
EXTRA_COMPILE_FLAGS+=" -DWAMR_BUILD_SANITIZER=posan"
|
||||
fi
|
||||
|
||||
# Make sure we're using the builtin WASI libc implementation
|
||||
# if we're running the wasi certification tests.
|
||||
if [[ $TEST_CASE_ARR ]]; then
|
||||
|
||||
Reference in New Issue
Block a user