summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-07-27 08:54:49 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-07-27 08:54:49 +0000
commit4bc2ac33ca53e3e956bca2f79e17d853bdcce0a8 (patch)
treec52d811de9de4967ff1344f32bd46f4bd870ae2e /eval.c
parentb5bbcb253b2d6ae6032b7e2b8e00aff8ed01e698 (diff)
* eval.c (rb_eval): add CHECK_INTS before next, redo, retry to
avoid potential uninterruptable infinite loop. * file.c (rb_file_s_expand_path): should not expand "." and ".." not following dirsep. * eval.c (rb_provide_feature): should not tweak extension used for loading. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 17d48438cf..9139f43687 100644
--- a/eval.c
+++ b/eval.c
@@ -2301,14 +2301,17 @@ rb_eval(self, n)
break;
case NODE_NEXT:
+ CHECK_INTS;
JUMP_TAG(TAG_NEXT);
break;
case NODE_REDO:
+ CHECK_INTS;
JUMP_TAG(TAG_REDO);
break;
case NODE_RETRY:
+ CHECK_INTS;
JUMP_TAG(TAG_RETRY);
break;