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/