-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eval_intern.h: refine stack overflow detection
* eval_intern.h (TH_PUSH_TAG, TH_EXEC_TAG): refine stack overflow detection. chain local tag after setjmp() successed on it, because calling setjmp() also can overflow the stack. [ruby-dev:47804] [Bug ruby#9109] * vm_eval.c (rb_catch_obj): now th->tag points previous tag until TH_EXEC_TAG(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Loading branch information
Showing
4 changed files
with
20 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
Mon Nov 18 22:47:11 2013 Nobuyoshi Nakada <[email protected]> | ||
Mon Nov 18 22:47:54 2013 Nobuyoshi Nakada <[email protected]> | ||
|
||
* eval_intern.h (TH_PUSH_TAG, TH_EXEC_TAG): refine stack overflow | ||
detection. chain local tag after setjmp() successed on it, because | ||
calling setjmp() also can overflow the stack. | ||
[ruby-dev:47804] [Bug #9109] | ||
|
||
* vm_eval.c (rb_catch_obj): now th->tag points previous tag until | ||
TH_EXEC_TAG(). | ||
|
||
* thread_pthread.c (ruby_init_stack): set stack_start properly by | ||
get_main_stack() if possible. | ||
|
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
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
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