Bug #4317: File.stat cause Segmentation Fault if take a long string.
http://redmine.ruby-lang.org/issues/show/4317

Author: Motohiro KOSAKI
Status: Open, Priority: Normal
Category: core, Target version: 1.9.3
ruby -v: ruby 1.9.3dev (2011-01-23 trunk 30640) [i386-mswin32_100] 

following script will crash immediately.

C:\ruby\trunk\build>\ruby\bin\ruby -ve 'File.stat("a"*100_000_000)'
ruby 1.9.3dev (2011-01-23 trunk 30640) [i386-mswin32_100]


----------------------------------------
http://redmine.ruby-lang.org