Skip to content

msgp: Reader: reset limits on cached readers#435

Merged
philhofer merged 1 commit intomasterfrom
reader-reset-limits
Mar 16, 2026
Merged

msgp: Reader: reset limits on cached readers#435
philhofer merged 1 commit intomasterfrom
reader-reset-limits

Conversation

@philhofer
Copy link
Member

A hand-written implementation of DecodeMsg may adjust the reader limits inside msgp.CopyToJSON, msgp.Decode, and so forth. Ensure that a Reader pulled from the pool has the same limits (zeros) every time.

A hand-written implementation of DecodeMsg may adjust the reader
limits inside msgp.CopyToJSON, msgp.Decode, and so forth.
Ensure that a Reader pulled from the pool has the same limits (zeros)
every time.
@philhofer philhofer requested a review from klauspost March 16, 2026 19:49
Copy link
Collaborator

@klauspost klauspost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@philhofer philhofer merged commit 6f99c86 into master Mar 16, 2026
3 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