Bug #4313

File.identical? cause Segmentation Fault if take a long string.

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

[ruby-core:34830]
Status:Closed
Priority:Normal
Assignee:-
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 crash immediately, But error log doesn't display at all.


ruby -ve 'p File.identical?("a"*100000000, "a")'

ruby 1.9.3dev (2011-01-23 trunk 30640) [i386-mswin32_100]
=end

Associated revisions

Revision 30667
Added by Motohiro KOSAKI about 3 years ago

  • file.c (w32ioinfo): get rid of too huge alloca(). [Bug #4313]

History

#1 Updated by Motohiro KOSAKI about 3 years ago

=begin
It maybe windows only. I doubt w32ioinfo makes stack overflow.
=end

#2 Updated by James Kelly about 3 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

#3 Updated by Motohiro KOSAKI about 3 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r30667.
Motohiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • file.c (w32ioinfo): get rid of too huge alloca(). [Bug #4313] =end

Also available in: Atom PDF