Skip to content

Guard against copying into self#215

Merged
mudge merged 1 commit into
mainfrom
fix-cloning-into-self
Apr 17, 2026
Merged

Guard against copying into self#215
mudge merged 1 commit into
mainfrom
fix-cloning-into-self

Conversation

@mudge
Copy link
Copy Markdown
Owner

@mudge mudge commented Apr 17, 2026

Use the standard Ruby pattern of guarding against calling initialize_copy against self, see https://github.com/ruby/ruby/blob/11e3c78b61da705c783dd12fb7f158c0d256ede0/object.c#L652

Use the standard Ruby pattern of guarding against calling
initialize_copy against self, see
https://github.com/ruby/ruby/blob/11e3c78b61da705c783dd12fb7f158c0d256ede0/object.c#L652
@mudge mudge merged commit 89481f6 into main Apr 17, 2026
103 checks passed
@mudge mudge deleted the fix-cloning-into-self branch April 17, 2026 12:15
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