Skip to content

fix: client: harden Memcached::get parsing logic - #294

Merged
56quarters merged 1 commit into
masterfrom
get-buffer
Oct 24, 2026
Merged

56quarters merged 1 commit into
masterfrom
get-buffer

Conversation

@56quarters

Copy link
Copy Markdown
Owner

Start with a smaller buffer for results instead of allocating len bytes up front and grow it as needed. We also verify the number of payload bytes read and that it is followed by a trailing \r\n.

Start with a smaller buffer for results instead of allocating
`len` bytes up front and grow it as needed. We also verify the
number of payload bytes read and that it is followed by a trailing
`\r\n`.
@56quarters
56quarters marked this pull request as ready for review October 24, 2026 23:31
@56quarters
56quarters merged commit 62c742c into master Oct 24, 2026
17 checks passed
@56quarters
56quarters deleted the get-buffer branch October 24, 2026 23:32
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