Actions
Bug #22449
closedOut-of-bounds in `Array#sample` when array modified
Bug #22449:
Out-of-bounds in `Array#sample` when array modified
Actions
Added by nobu (Nobuyoshi Nakada) about 1 month ago. Updated 3 days ago.
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.
ruby_3_4 aa49c486088e6ad514260fa758e7854741be8797 merged revision(s) 88ffa9a3003c36e5c6001cca33e0bba2fcb37125.
ruby_4_0 afc3c470a7fba08aba59e951d6d0fc187c0dbbdd merged revision(s) 88ffa9a3003c36e5c6001cca33e0bba2fcb37125.