Project

General

Profile

Actions

Bug #19748

closed

`String#byteindex` crashes when `offset` is too large

Added by nobu (Nobuyoshi Nakada) 12 months ago. Updated 11 months ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:114034]

Description

"a".byteindex("", 1000000) #=> [BUG] Segmentation fault
Actions #1

Updated by nobu (Nobuyoshi Nakada) 12 months ago

  • Status changed from Open to Closed

Applied in changeset git|bc3ac1872e4523334e3ed04c2bb70a55c4c43f98.


[Bug #19748] Fix out-of-bound access in String#byteindex

Updated by nagachika (Tomoyuki Chikanaga) 11 months ago

  • Backport changed from 3.0: DONTNEED, 3.1: DONTNEED, 3.2: REQUIRED to 3.0: DONTNEED, 3.1: DONTNEED, 3.2: DONE

ruby_3_2 65d294ad019c8ac5bba12e2c9098360bacafc9e3 merged revision(s) bc3ac1872e4523334e3ed04c2bb70a55c4c43f98.

Actions

Also available in: Atom PDF

Like0
Like0Like0