Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vm.c: use
prepare_missing
in mrb_funcall_with_block
Remove code duplication.
- Loading branch information
Showing
1 changed file
with
52 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prepare_missing()
is limited to references frommrb->c->ci->stack
as method arguments.Therefore, if a method retrieval fails, the
argv
passed tomrb_funcall_with_block()
is ignored.This will cause unintended value retrieval.