Skip to content
Permalink
Browse files
Jump address should fit in 16 bits range; fix #3426
  • Loading branch information
matz committed Feb 4, 2017
1 parent a746ebe commit 6e0ba0085d22b7751c46b178e841046483f0f6b4
Showing 1 changed file with 3 additions and 0 deletions.
@@ -388,6 +388,9 @@ dispatch(codegen_scope *s, int pc)
scope_error(s);
break;
}
if (diff > MAXARG_sBx) {
codegen_error(s, "too distant jump address");
}
s->iseq[pc] = MKOP_AsBx(c, GETARG_A(i), diff);
}

0 comments on commit 6e0ba00

Please sign in to comment.