From: "nobu (Nobuyoshi Nakada) via ruby-core" Date: 2026-10-16T05:36:49+00:00 Subject: [ruby-core:127137] [Ruby Bug#22449] Out-of-bounds in `Array#sample` when array modified Issue #22449 has been reported by nobu (Nobuyoshi Nakada). ---------------------------------------- Bug #22449: Out-of-bounds in `Array#sample` when array modified https://bugs.ruby-lang.org/issues/22449 * Author: nobu (Nobuyoshi Nakada) * Status: Open * Backport: 3.3: REQUIRED, 3.4: REQUIRED, 4.0: REQUIRED ---------------------------------------- Backports required: [GH-18879] and [GH-19047] Also cases where array modified within the `rand` method. [GH-18879]: https://github.com/ruby/ruby/pull/18879 [GH-19047]: https://github.com/ruby/ruby/pull/19047 -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/