mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-07-15 08:48:33 +00:00
runtime_signal_handler: fix guard page range
maybe this is related to the extra page in: https://github.com/bytecodealliance/wasm-micro-runtime/issues/3144
This commit is contained in:
parent
0f043dcc42
commit
8639cbacff
|
@ -219,7 +219,7 @@ runtime_signal_handler(void *sig_addr)
|
||||||
os_longjmp(jmpbuf_node->jmpbuf, 1);
|
os_longjmp(jmpbuf_node->jmpbuf, 1);
|
||||||
}
|
}
|
||||||
#if WASM_DISABLE_STACK_HW_BOUND_CHECK == 0
|
#if WASM_DISABLE_STACK_HW_BOUND_CHECK == 0
|
||||||
else if (stack_min_addr - page_size <= (uint8 *)sig_addr
|
else if (stack_min_addr <= (uint8 *)sig_addr
|
||||||
&& (uint8 *)sig_addr
|
&& (uint8 *)sig_addr
|
||||||
< stack_min_addr + page_size * guard_page_count) {
|
< stack_min_addr + page_size * guard_page_count) {
|
||||||
/* The address which causes segmentation fault is inside
|
/* The address which causes segmentation fault is inside
|
||||||
|
|
Loading…
Reference in New Issue
Block a user