aboutsummaryrefslogtreecommitdiffstats
path: root/eval_error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-19 00:25:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-19 00:25:45 +0000
commit2fe39eee8da51679aeb76aceb3d6bcd74e777d19 (patch)
tree65ce1058490ebe94b44ee5b00f8e6863072da913 /eval_error.c
parent11b219d80f4a31cd18b7eb1d152388b60deb0fc4 (diff)
downloadruby-2fe39eee8da51679aeb76aceb3d6bcd74e777d19.tar.gz
eval.c: check tag value
* eval.c (rb_jump_tag): paranoiac check of tag value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.c')
-rw-r--r--eval_error.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/eval_error.c b/eval_error.c
index 0f2f165cc8..e907d7ee88 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -258,6 +258,9 @@ sysexit_status(VALUE err)
return NUM2INT(st);
}
+#define unknown_longjmp_status(status) \
+ rb_bug("Unknown longjmp status %d", status)
+
static int
error_handle(int ex)
{
@@ -314,7 +317,7 @@ error_handle(int ex)
error_print();
break;
default:
- rb_bug("Unknown longjmp status %d", ex);
+ unknown_longjmp_status(ex);
break;
}
rb_threadptr_reset_raised(th);