Skip to content

msgp: Reader: reset limits on cached readers - #435

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

philhofer merged 1 commit into
masterfrom
reader-reset-limits

Conversation

@philhofer

Copy link
Copy Markdown
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

@klauspost klauspost left a comment

Copy link
Copy Markdown
Collaborator

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
gannett-ggreer pushed a commit to GannettDigital/msgp that referenced this pull request Aug 25, 2026
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.
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