File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4220,10 +4220,16 @@ wasm_interp_iterate_callstack(WASMExecEnv *exec_env,
42204220 WASMCApiFrame record_frame ;
42214221 while (cur_frame && (uint8_t * )cur_frame >= bottom
42224222 && (uint8_t * )cur_frame + sizeof (WASMInterpFrame ) <= top_boundary ) {
4223+ if (!cur_frame -> function ) {
4224+ cur_frame = cur_frame -> prev_frame ;
4225+ continue ;
4226+ }
42234227 record_frame .instance = module_inst ;
42244228 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 );
42274233 if (!frame_handler (user_data , & record_frame )) {
42284234 break ;
42294235 }
You can’t perform that action at this time.
0 commit comments