File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -4220,10 +4220,16 @@ wasm_interp_iterate_callstack(WASMExecEnv *exec_env,
4220
4220
WASMCApiFrame record_frame ;
4221
4221
while (cur_frame && (uint8_t * )cur_frame >= bottom
4222
4222
&& (uint8_t * )cur_frame + sizeof (WASMInterpFrame ) <= top_boundary ) {
4223
+ if (!cur_frame -> function ) {
4224
+ cur_frame = cur_frame -> prev_frame ;
4225
+ continue ;
4226
+ }
4223
4227
record_frame .instance = module_inst ;
4224
4228
record_frame .module_offset = 0 ;
4225
- // It's safe to dereference module_inst->e because "e" is asigned only once in wasm_instantiate
4226
- record_frame .func_index = (uint32 )(cur_frame -> function - module_inst -> e -> functions );
4229
+ // It's safe to dereference module_inst->e because "e" is asigned only
4230
+ // once in wasm_instantiate
4231
+ record_frame .func_index =
4232
+ (uint32 )(cur_frame -> function - module_inst -> e -> functions );
4227
4233
if (!frame_handler (user_data , & record_frame )) {
4228
4234
break ;
4229
4235
}
You can’t perform that action at this time.
0 commit comments