summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2024-11-26 18:35:34 -0500
committergit <svn-admin@ruby-lang.org>2024-11-27 03:19:39 +0000
commitc41af37ee64e4fec5f09916485123e8f9ec002cb (patch)
tree869b467989919aa7c3c88bf249485438b01432c7 /include/ruby
parent3face42d8a0becf6142d2bcc834186b9665c0380 (diff)
[ruby/io-console] Read errno before calling rb_io_path()
Possible fix for recent crashes seen on CI. [BUG] rb_sys_fail_str(<STDIN>) - errno == 0 rb_io_path() calls rb_obj_dup(), which could call initialize_dup in Ruby and clobber errno before rb_sys_fail_str() gets to read errno. So save it out first. (Using separate statements because order of evaluation in function call list is unspecified, and order is important here.) https://github.com/ruby/io-console/commit/0ba400b5e7
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions