Skip to content

Fix HTTP/3 decoding of frames with zero length payloads - #17564

Merged
normanmaurer merged 2 commits into
netty:4.2from
violetagg:followup-pr-17523
Sep 21, 2026
Merged

normanmaurer merged 2 commits into
netty:4.2from
violetagg:followup-pr-17523

Conversation

@violetagg

Copy link
Copy Markdown
Member

Motivation:
This is an additional fix for PR #17523.
The check added with PR #17523 reads the first byte of the variable length integer, a frame with a declared zero length doesn't have such byte.

Modification:

  • Add a payload length check
  • Add junit tests

Result:

Frames with zero length payloads fail with H3_FRAME_ERROR

Motivation:
This is an additional fix for PR netty#17523.
The check added with PR netty#17523 reads the first byte of the variable length
integer, a frame with a declared zero length doesn't have such byte.

Modification:
- Add a payload length check
- Add junit tests

Result:

Frames with zero length payloads fail with H3_FRAME_ERROR
@normanmaurer normanmaurer added the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Sep 21, 2026
@normanmaurer

Copy link
Copy Markdown
Member

@violetagg please fix check style

@testlens-app

testlens-app Bot commented Sep 21, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: 0055f8b
▶️ Tests: 455756 executed
⚪️ Checks: 25/25 completed


Learn more about TestLens at testlens.app/docs.

@normanmaurer
normanmaurer merged commit 8cca995 into netty:4.2 Sep 21, 2026
26 checks passed
@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port PR for 5.0: #17572

@github-actions github-actions Bot removed the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Sep 21, 2026
@violetagg
violetagg deleted the followup-pr-17523 branch September 21, 2026 14:26
normanmaurer pushed a commit that referenced this pull request Sep 21, 2026
#17572)

Auto-port of #17564 to 5.0
Cherry-picked commit: 8cca995

---
Motivation:
This is an additional fix for PR #17523.
The check added with PR #17523 reads the first byte of the variable
length integer, a frame with a declared zero length doesn't have such
byte.

Modification:
- Add a payload length check
- Add junit tests

Result:

Frames with zero length payloads fail with H3_FRAME_ERROR

Co-authored-by: Violeta Georgieva <[email protected]>
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