FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Auto-port 4.1: Reject negative maxOrder in PooledByteBufAllocator by netty-project-bot · Pull Request #17095 · netty/netty · GitHub

/ netty Public

Auto-port 4.1: Reject negative maxOrder in PooledByteBufAllocator - #17095

Merged
normanmaurer merged 1 commit into
4.1from
auto-port-pr-17093-to-4.1
Jul 18, 2026
Merged

normanmaurer merged 1 commit into
4.1from
auto-port-pr-17093-to-4.1

Conversation

Copy link
Copy Markdown
Contributor

Auto-port of #17093 to 4.1
Cherry-picked commit: 010b6e8


Motivation:

The valid range of maxOrder is 0 to 14, but negative values were accepted because only the upper bound was validated. When configured through io.netty.allocator.maxOrder, a negative value may result in an invalid chunk size during static initialization.

Modification:

Validate the lower bound of maxOrder and add a regression test.

Result:

Negative maxOrder values are rejected with an IllegalArgumentException.

Motivation:

The valid range of `maxOrder` is 0 to 14, but negative values were
accepted because only the upper bound was validated. When configured
through `io.netty.allocator.maxOrder`, a negative value may result in an
invalid chunk size during static initialization.

Modification:

Validate the lower bound of `maxOrder` and add a regression test.

Result:

Negative `maxOrder` values are rejected with an
`IllegalArgumentException`.

(cherry picked from commit 010b6e8)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

4 participants


Back | FazBrowse Home | New Git URL