Skip to content

Auto-port 5.0: Redis: Limit decoded length#16884

Merged
chrisvest merged 2 commits into
5.0from
auto-port-pr-16859-to-5.0
Jun 4, 2026
Merged

Auto-port 5.0: Redis: Limit decoded length#16884
chrisvest merged 2 commits into
5.0from
auto-port-pr-16859-to-5.0

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16859 to 5.0
Cherry-picked commit: bff98ee


Motivation:

To guard against unbounded memory usage we should enforce a limit when we try to decode the length. This needs to fit into a signed 64 bit integer.

Modifications:

  • Enforce limit during decoding
  • Add unit test

Result:

Ensure we will limit the number of bytes we buffer

Motivation:

To guard against unbounded memory usage we should enforce a limit when
we try to decode the length. This needs to fit into a signed 64 bit
integer.

Modifications:

- Enforce limit during decoding
- Add unit test

Result:

Ensure we will limit the number of bytes we buffer

(cherry picked from commit bff98ee)
@chrisvest chrisvest added this to the 5.0.0.Final milestone Jun 1, 2026
@chrisvest chrisvest merged commit 84a6b03 into 5.0 Jun 4, 2026
12 of 13 checks passed
@chrisvest chrisvest deleted the auto-port-pr-16859-to-5.0 branch June 4, 2026 20:16
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.

3 participants