Bug #4313
File.identical? cause Segmentation Fault if take a long string.
Description
=begin
Following script crash immediately, But error log doesn't display at all.
ruby -ve 'p File.identical?("a"*100_000_000, "a")'
ruby 1.9.3dev (2011-01-23 trunk 30640) [i386-mswin32_100]
=end
Associated revisions
- file.c (w32_io_info): get rid of too huge alloca(). [Bug #4313] [ruby-core:34830]
- file.c (w32_io_info): get rid of too huge alloca(). [Bug #4313] [ruby-core:34830]
- file.c (w32_io_info): get rid of too huge alloca(). [Bug #4313] [ruby-core:34830]
- file.c (w32_io_info): get rid of too huge alloca(). [Bug #4313] [ruby-core:34830]
- file.c (w32_io_info): get rid of too huge alloca(). [Bug #4313] [ruby-core:34830]
- file.c (w32_io_info): get rid of too huge alloca(). [Bug #4313] [ruby-core:34830]
History
Updated by kosaki (Motohiro KOSAKI) about 8 years ago
=begin
It maybe windows only. I doubt w32_io_info makes stack overflow.
=end
Updated by jhkelly05 (James Kelly) about 8 years ago
=begin
Bug does not does not seem to be present in ruby 1.8.7 or 1.9.2-p0 i386 Linux
=end
Updated by kosaki (Motohiro KOSAKI) about 8 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e