| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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)
| Back | FazBrowse Home | New Git URL |
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.