Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix object serialization #340

Merged
merged 1 commit into from
Jan 22, 2025
Merged

Conversation

bnoordhuis
Copy link
Collaborator

Use of ser_array_begin in two cases caused an off-by-one error in the object back-reference count that is used to stop an object from being encoded more than once (and thus maintains object identity, allowing recursive structures.)

Use of ser_array_begin in two cases caused an off-by-one error in the
object back-reference count that is used to stop an object from being
encoded more than once (and thus maintains object identity, allowing
recursive structures.)
@SamSaffron SamSaffron merged commit 02f7d7a into rubyjs:main Jan 22, 2025
28 of 32 checks passed
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.

2 participants