Skip to content

[Bug #22333] Fix assertion error when calling Array#initialize - #18907

Merged
peterzhu2118 merged 1 commit into
ruby:masterfrom
peterzhu2118:ary-initialize-call
Sep 18, 2026
Merged

peterzhu2118 merged 1 commit into
ruby:masterfrom
peterzhu2118:ary-initialize-call

Conversation

@peterzhu2118

Copy link
Copy Markdown
Member

If we call Array#initialize again, it may trigger an assertion error since the length is not reset before the capacity is changed.

@github-actions

Copy link
Copy Markdown

This pull request references the following Redmine tickets:

[Bug #22333]

If we call Array#initialize again, it may trigger an assertion error since
the length is not reset before the capacity is changed.
@peterzhu2118
peterzhu2118 merged commit 0cdc456 into ruby:master Sep 18, 2026
143 of 147 checks passed
@peterzhu2118
peterzhu2118 deleted the ary-initialize-call branch September 18, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant