Actions
Bug #19748
closed`String#byteindex` crashes when `offset` is too large
Description
"a".byteindex("", 1000000) #=> [BUG] Segmentation fault
Actions
Like0
Like0Like0
Added by nobu (Nobuyoshi Nakada) over 1 year ago. Updated over 1 year ago.
Description
"a".byteindex("", 1000000) #=> [BUG] Segmentation fault
Applied in changeset git|bc3ac1872e4523334e3ed04c2bb70a55c4c43f98.
[Bug #19748] Fix out-of-bound access in String#byteindex
ruby_3_2 65d294ad019c8ac5bba12e2c9098360bacafc9e3 merged revision(s) bc3ac1872e4523334e3ed04c2bb70a55c4c43f98.