Bug #4317

File.stat cause Segmentation Fault if take a long string.

Added by Motohiro KOSAKI about 3 years ago. Updated almost 3 years ago.

[ruby-core:34835]
Status:Closed
Priority:Normal
Assignee:Motohiro KOSAKI
Category:core
Target version:1.9.3
ruby -v:ruby 1.9.3dev (2011-01-23 trunk 30640) [i386-mswin32_100] Backport:

Description

=begin
following script will crash immediately.

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

History

#1 Updated by Usaku NAKAMURA about 3 years ago

  • Status changed from Open to Closed
  • Assignee set to Motohiro KOSAKI

=begin
fixed at r30666 by himself.
Thank you, kosaki-san.
=end

Also available in: Atom PDF