Project

General

Profile

Bug #8543 » iseq-load-test3-file.rb

Program fragment which triggers SEGV when loaded by rb_iseq_load - spatulasnout (B Kelly), 04/16/2014 10:03 AM

 

module FileUtils
def user_mask(target) #:nodoc:
target.each_char.inject(0) do |mask, chr|
case chr
when "u"
mask | 04700
when "g"
mask | 02070
when "o"
mask | 01007
when "a"
mask | 07777
else
raise ArgumentError, "invalid `who' symbol in file mode: #{chr}"
end
end
end
end
(4-4/6)