Actions
Bug #22325
openout of bounds read in array
Bug #22325:
out of bounds read in array
Description
Hi, an OOB read seems possible in array
class bad < Numeric
def initialize(v); @v = v; end
def val; @v; end
def <=>(o); @v <=> (o.is_a?(bad) ? o.val : o); end
def to_int; $a.clear; @v; end
def to_i; @v; end
def coerce(o); [o, @v]; end
end
$a = (1..3000).to_a
seq = Range.new(bad.new(2900), bad.new(2950)).step(2)
asan output (truncated):
Actions