mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Revert "Fix heap use after free on mruby-aws-sigv4."
This reverts commit b8869498b7.
This commit is contained in:
@@ -528,8 +528,6 @@ mrb_exec_irep(mrb_state *mrb, mrb_value self, struct RProc *p)
|
||||
return MRB_PROC_CFUNC(p)(mrb, self);
|
||||
}
|
||||
ci->nregs = p->body.irep->nregs;
|
||||
ci->env = MRB_PROC_ENV(p);
|
||||
if (ci->env) ci->env->stack[0] = self;
|
||||
if (ci->argc < 0) keep = 3;
|
||||
else keep = ci->argc + 2;
|
||||
if (ci->nregs < keep) {
|
||||
|
||||
Reference in New Issue
Block a user