From 29a49f366e8c2c2d5ee040d68ec9b07e1cae0a6d Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Wed, 10 Aug 2022 12:03:39 +0800 Subject: [PATCH] wamr: Add a new option to custom stack guard size Signed-off-by: Huang Qi --- interpreters/wamr/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/interpreters/wamr/Kconfig b/interpreters/wamr/Kconfig index 853973715..c609bfb5f 100644 --- a/interpreters/wamr/Kconfig +++ b/interpreters/wamr/Kconfig @@ -81,6 +81,13 @@ config INTERPRETERS_WAMR_MINILOADER ---help--- Mini-loader don't check the integrity of wasm module +config INTERPRETERS_WAMR_STACK_GUARD_SIZE + int "Custom stack guard size" + default 0 + ---help--- + Reserve some space in stack as guard to detect stack overflow, + use stack base by default but may not safe enough. + config INTERPRETERS_WAMR_THREAD_MGR bool "Enable thread manager" default n