forked from GitHub/gf-core
push a stack frame around recursive calls to guarantee that a nested call to a failing function will not crash
This commit is contained in:
@@ -1027,7 +1027,10 @@ pgf_jit_function(PgfReader* rdr, PgfAbstr* abstr,
|
|||||||
gu_printf(out, err, "\n");
|
gu_printf(out, err, "\n");
|
||||||
#endif
|
#endif
|
||||||
jit_pushr_p(JIT_R2);
|
jit_pushr_p(JIT_R2);
|
||||||
|
jit_pushr_p(JIT_FP);
|
||||||
|
jit_movr_p(JIT_FP, JIT_SP);
|
||||||
jit_callr(JIT_R0);
|
jit_callr(JIT_R0);
|
||||||
|
jit_popr_p(JIT_FP);
|
||||||
jit_popr_p(JIT_VCLOS);
|
jit_popr_p(JIT_VCLOS);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user