Project

General

Profile

Actions

Bug #22449

closed

Out-of-bounds in `Array#sample` when array modified

Bug #22449: Out-of-bounds in `Array#sample` when array modified

Added by nobu (Nobuyoshi Nakada) 3 days ago. Updated 3 days ago.

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

Description

Backports required: GH-18879, GH-19047, and GH-19384

Updated by nobu (Nobuyoshi Nakada) 3 days ago Actions #1

  • Description updated (diff)

Updated by nobu (Nobuyoshi Nakada) 3 days ago Actions #2

  • Description updated (diff)

Updated by nobu (Nobuyoshi Nakada) 3 days ago Actions #3

  • Status changed from Open to Closed

Applied in changeset git|88ffa9a3003c36e5c6001cca33e0bba2fcb37125.


[Bug #22449] Fix out-of-bounds in Array#sample when array modified

Get the length after the conversion using to_int is complete.

Actions

Also available in: PDF Atom