Lower the anal.depth to 32 on wasm builds (64KB stack size limit)

This commit is contained in:
pancake 2023-01-09 11:28:29 +01:00 committed by pancake
parent c9a8d8914d
commit 6baa934f48

View File

@ -3413,7 +3413,11 @@ R_API int r_core_config_init(RCore *core) {
SETCB ("anal.armthumb", "false", &cb_analarmthumb, "aae computes arm/thumb changes (lot of false positives ahead)");
SETCB ("anal.delay", "true", &cb_anal_delay, "enable delay slot analysis if supported by the architecture");
#if __wasi__
SETICB ("anal.depth", 32, &cb_analdepth, "max depth at code analysis");
#else
SETICB ("anal.depth", 128, &cb_analdepth, "max depth at code analysis");
#endif
SETICB ("anal.graph_depth", 256, &cb_analgraphdepth, "max depth for path search");
SETICB ("anal.sleep", 0, &cb_analsleep, "sleep N usecs every so often during analysis. Avoid 100% CPU usage");
SETCB ("anal.ignbithints", "false", &cb_anal_ignbithints, "ignore the ahb hints (only obey asm.bits)");