-
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: make TH_PUSH_TAG() initialize rb_vm_tag::tag with Qundef
* eval_intern.h (TH_PUSH_TAG): Initialize struct rb_vm_tag::tag with Qundef rather than 0 which is equal to Qfalse. Since Kernel#throw(obj) searches a tag with rb_vm_tag::tag == obj, throw(false) can accidentally find an unrelated tag which is not created by Kernel#catch. [ruby-core:77229] [Bug #12743] * test/ruby/test_exception.rb (test_throw_false): Add a test case for this. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
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,3 +1,14 @@ | ||
Mon Sep 26 15:43:34 2016 Kazuki Yamaguchi <[email protected]> | ||
|
||
* eval_intern.h (TH_PUSH_TAG): Initialize struct rb_vm_tag::tag with | ||
Qundef rather than 0 which is equal to Qfalse. Since Kernel#throw(obj) | ||
searches a tag with rb_vm_tag::tag == obj, throw(false) can | ||
accidentally find an unrelated tag which is not created by | ||
Kernel#catch. [ruby-core:77229] [Bug #12743] | ||
|
||
* test/ruby/test_exception.rb (test_throw_false): Add a test case for | ||
this. | ||
|
||
Mon Sep 26 14:36:12 2016 Naotoshi Seo <[email protected]> | ||
|
||
* lib/tempfile.rb: provide default basename parameter for | ||
|
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