[fuzzing] Use software bound-check during fuzzing (#4003)
* Update CMakeLists.txt of fuzzing - enable software bound-check - enable wasi - disable libc builtin and multiple modules * Fix off-by-one error in result offset calculation for function calls
This commit is contained in:
@ -66,7 +66,7 @@ if (NOT DEFINED WAMR_BUILD_JIT)
|
||||
endif ()
|
||||
|
||||
if (NOT DEFINED WAMR_BUILD_LIBC_BUILTIN)
|
||||
# Enable libc builtin support by default
|
||||
# Disable libc builtin support by default
|
||||
set (WAMR_BUILD_LIBC_BUILTIN 0)
|
||||
endif ()
|
||||
|
||||
@ -81,7 +81,7 @@ if (NOT DEFINED WAMR_BUILD_FAST_INTERP)
|
||||
endif ()
|
||||
|
||||
if (NOT DEFINED WAMR_BUILD_MULTI_MODULE)
|
||||
# Enable multiple modules
|
||||
# Disable multiple modules
|
||||
set (WAMR_BUILD_MULTI_MODULE 0)
|
||||
endif ()
|
||||
|
||||
@ -116,6 +116,10 @@ if (WAMR_BUILD_DEBUG_INTERP EQUAL 1)
|
||||
set (WAMR_BUILD_SIMD 0)
|
||||
endif ()
|
||||
|
||||
# sanitizer may use kHandleSignalExclusive to handle SIGSEGV
|
||||
# like `UBSAN_OPTIONS=handle_segv=2:...`
|
||||
set (WAMR_DISABLE_HW_BOUND_CHECK 1)
|
||||
|
||||
set (REPO_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR}/../../..)
|
||||
message([ceith]:REPO_ROOT_DIR, ${REPO_ROOT_DIR})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user