Skip to content

Reject oversized request bodies before allocation - #203

Open
ToLiveAndLove wants to merge 1 commit into
bytedance:mainfrom
ToLiveAndLove:fix/request-body-size-limit
Open

ToLiveAndLove wants to merge 1 commit into
bytedance:mainfrom
ToLiveAndLove:fix/request-body-size-limit

Conversation

@ToLiveAndLove

@ToLiveAndLove ToLiveAndLove commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Fixes #199.

Reject request bodies larger than the existing 4 MiB protocol buffer limit before allocation. Preserve the current receive buffer if realloc fails.

Add focused protocol header validation tests.

Validation:

  • Protocol and existing Meson tests pass.
  • The complete extension builds successfully.
  • Pre-commit checks pass.
  • TCP read/write integration tests pass.

@ToLiveAndLove
ToLiveAndLove force-pushed the fix/request-body-size-limit branch from 63c3687 to 6a15049 Compare September 17, 2026 02:59

This branch has not been deployed

No deployments
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.

a risk of memory exhaustion

1 participant