Permalink
Browse files

Fixed codegen error of redo in rescue; fix #3422

The issue (and the fix) was reported by https://hackerone.com/dgaletic
  • Loading branch information...
matz committed Feb 13, 2017
1 parent c2ddcd4 commit ecb6ac8b4aca56582ebed3e955178a0ad6c77d5d
Showing with 1 addition and 1 deletion.
  1. +1 −1 mrbgems/mruby-compiler/core/codegen.c
@@ -2038,7 +2038,7 @@ codegen(codegen_scope *s, node *tree, int val)
break;
case NODE_REDO:
if (!s->loop) {
if (!s->loop || s->loop->type == LOOP_BEGIN || s->loop->type == LOOP_RESCUE) {
raise_error(s, "unexpected redo");
}
else {

0 comments on commit ecb6ac8

Please sign in to comment.