diff --git a/.gitignore b/.gitignore index baf11c8916..0c8bda886f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ + .cache .clangd .vs @@ -39,4 +40,4 @@ tests/benchmarks/coremark/coremark* samples/workload/include/** !samples/workload/include/.gitkeep -# core/iwasm/libraries/wasi-threads +# core/iwasm/libraries/wasi-threads \ No newline at end of file diff --git a/core/iwasm/aot/aot_runtime.c b/core/iwasm/aot/aot_runtime.c index 5ed7fc8afb..350ec54cad 100644 --- a/core/iwasm/aot/aot_runtime.c +++ b/core/iwasm/aot/aot_runtime.c @@ -4332,6 +4332,7 @@ aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, WASMCApiFrame *buffer, AOTTinyFrame *frame = (AOTTinyFrame *)(top - sizeof(AOTTinyFrame)); WASMCApiFrame record_frame; + memset(&record_frame, 0, sizeof(WASMCApiFrame)); while (frame && (uint8_t *)frame >= bottom && count < (skip_n + length)) { if (count < skip_n) { ++count; @@ -4374,6 +4375,7 @@ aot_copy_callstack_standard_frame(WASMExecEnv *exec_env, WASMCApiFrame *buffer, uint32 frame_size = (uint32)offsetof(AOTFrame, lp); WASMCApiFrame record_frame; + memset(&record_frame, 0, sizeof(WASMCApiFrame)); while (cur_frame && (uint8_t *)cur_frame >= bottom && (uint8_t *)cur_frame + frame_size <= top_boundary && count < (skip_n + length)) {