[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/
Issue #22449 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 3.3: REQUIRED, 3.4: REQUIRED, 4.0: REQUIRED to 3.3: REQUIRED, 3.4: DONE, 4.0: REQUIRED ruby_3_4 commit:aa49c486088e6ad514260fa758e7854741be8797 merged revision(s) commit:88ffa9a3003c36e5c6001cca33e0bba2fcb37125. ---------------------------------------- Bug #22449: Out-of-bounds in `Array#sample` when array modified https://bugs.ruby-lang.org/issues/22449#change-119734 * Author: nobu (Nobuyoshi Nakada) * Status: Closed * Backport: 3.3: REQUIRED, 3.4: DONE, 4.0: REQUIRED ---------------------------------------- Backports required: [GH-18879], [GH-19047], and [GH-19384] [GH-18879]: https://github.com/ruby/ruby/pull/18879 [GH-19047]: https://github.com/ruby/ruby/pull/19047 [GH-19384]: https://github.com/ruby/ruby/pull/19384 -- https://bugs.ruby-lang.org/
Issue #22449 has been updated by k0kubun (Takashi Kokubun). Backport changed from 3.3: REQUIRED, 3.4: DONE, 4.0: REQUIRED to 3.3: REQUIRED, 3.4: DONE, 4.0: DONE ruby_4_0 commit:afc3c470a7fba08aba59e951d6d0fc187c0dbbdd merged revision(s) commit:88ffa9a3003c36e5c6001cca33e0bba2fcb37125. ---------------------------------------- Bug #22449: Out-of-bounds in `Array#sample` when array modified https://bugs.ruby-lang.org/issues/22449#change-119973 * Author: nobu (Nobuyoshi Nakada) * Status: Closed * Backport: 3.3: REQUIRED, 3.4: DONE, 4.0: DONE ---------------------------------------- Backports required: [GH-18879], [GH-19047], and [GH-19384] [GH-18879]: https://github.com/ruby/ruby/pull/18879 [GH-19047]: https://github.com/ruby/ruby/pull/19047 [GH-19384]: https://github.com/ruby/ruby/pull/19384 -- https://bugs.ruby-lang.org/
participants (3)
-
k0kubun (Takashi Kokubun) -
nagachika (Tomoyuki Chikanaga) -
nobu (Nobuyoshi Nakada)