GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — crisp nova cceda091 by normanmaurer · Pull Request #18109 · netty/netty

crisp nova cceda091 #18109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
normanmaurer wants to merge 772 commits into 5.0 from crisp-nova-cceda091
+67,041 −10,539
Closed

crisp nova cceda091 #18109

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
772 commits
Select commit Hold shift + click to select a range
e2cb854
ByteBufUtil.HexUtil.HEXDUMP_TABLE array length 256*2 is enough (#17357)
panchenko Aug 31, 2026
e0b3f7d
IoUring: Expose tcp_info (#17354)
normanmaurer Aug 31, 2026
f279b3c
Auto-port 4.2: Fix JdkZlibDecoder silently truncating highly compress…
netty-project-bot Aug 31, 2026
d64f6a2
Add missing EOF handling test for io_uring (#17374)
normanmaurer Sep 1, 2026
a54bbf9
QUIC: Add missing NULL checks in native code to handle gracefully OOM…
normanmaurer Sep 2, 2026
8b72847
Fix JZlibDecoder truncating highly compressible streams (#17392)
renechoi Sep 7, 2026
f2b9ece
Fix typos in comments/javadoc (#17390)
TianHengZhuang Sep 7, 2026
5ccdb4c
Update to latest netty tcnative version (#17395)
normanmaurer Sep 7, 2026
447bdae
Update quiche to 0.29.2 (#17393)
normanmaurer Sep 9, 2026
80846a3
HTTP/2: Enable header value validation by default
chrisvest Aug 12, 2026
c1196f1
Verify id-kp-OCSPSigning EKU on delegated OCSP responder certificates
chrisvest Aug 8, 2026
8cf6b03
Validate SMTP command name for CRLF to prevent command injection
chrisvest Aug 8, 2026
8720060
MQTT: Strict bounds checking against max message size
chrisvest Aug 13, 2026
16154ba
HTTP/1.1: Fix chunk size parsing
chrisvest Aug 11, 2026
71675c6
RedisArrayAggregator nested RESP headers multiply patched preallocati…
normanmaurer Aug 19, 2026
3d30b8d
QUIC: Enforce usage of X509ExtendedTrustManager when using endpointId…
normanmaurer Aug 12, 2026
0ca2a32
HTTP/1 absolute-form Host mismatch is translated to HTTP/2 :authority…
normanmaurer Aug 14, 2026
109c0ae
Fix Extended CONNECT (RFC 8441/9220) downgrade issue in both codec-ht…
normanmaurer Aug 18, 2026
e8d5333
HTTP/1 CONNECT target is mistranslated to malformed HTTP/3 CONNECT an…
normanmaurer Aug 14, 2026
89c7169
HTTP/1 CONNECT target is mistranslated to malformed HTTP/2 CONNECT an…
normanmaurer Aug 14, 2026
c219d93
RTSP: RtspMethods.valueOf() silently strips trailing control bytes
normanmaurer Aug 14, 2026
94f2593
HAProxy PROXY-v2 nested-TLV grandchild ByteBuf reference-count leak
normanmaurer Aug 17, 2026
880c5f3
Bound the accumulated size of multi-line SMTP responses
violetagg Aug 11, 2026
640d4d3
Reject invalid request Transfer-Encoding framin
dreamlike-ocean Jul 20, 2026
2b0b844
Netty HTTP/3 QPACK encoder-stream Insert-With-Literal-Name unbounded …
normanmaurer Aug 20, 2026
baa0c86
QPACK: QpackUtil.decodePrefixedInteger(...) must enforce limit
normanmaurer Aug 14, 2026
d560434
QPACK: Limit the tracking of outstanding sections
normanmaurer Aug 20, 2026
d3e5d88
Fix frame desynchronization in the binary memcache decoder
daschl Aug 10, 2026
3630659
STOMP codec content-length long-to-int truncation causes infinite dec…
normanmaurer Aug 17, 2026
1b6ea48
HTTP3: Correctly handle ":authority" and "host" headers
violetagg Aug 6, 2026
3a80f5a
WebSockets: Enforce a limit for the max pipelined requests in WebSock…
normanmaurer Aug 12, 2026
5388535
STOMP: Correctly release partial content on handler removal
normanmaurer Aug 10, 2026
e3ebf70
OCSP: Correctly handle that `nextUpdate` is optional
chrisvest Sep 4, 2026
7e8b325
HTTP/2: Limit HPACK encoding table size
ejona86 Aug 17, 2026
374d965
HTTP: Limit the maximum number of concurrent pipelined requests
normanmaurer Aug 20, 2026
c44a052
SPDY: SpdySessionHandler must limit the concurrent streams
normanmaurer Sep 1, 2026
6fd5327
HTTP/1 absolute-form Host mismatch is translated to HTTP/3 :authority…
normanmaurer Sep 9, 2026
2521f49
[maven-release-plugin] prepare release netty-4.2.18.Final
netty-project-bot Sep 9, 2026
65d87e4
[maven-release-plugin] prepare for next development iteration
netty-project-bot Sep 9, 2026
4021ead
perf: Use LinkedHashSet to deduplicate search domains (#17400)
JunggiKim Sep 10, 2026
87eb426
Handle non-positive skip lengths in ByteBufInputStream (#17388)
cuishuang Sep 10, 2026
61ab453
Avoid double promise allocation in SslHandler.wrap() (#17382)
doom369 Sep 10, 2026
e8aaef5
Socket: Add half-closure tests to SocketHalfClosedTest (#17394)
rajan-github Sep 11, 2026
086310c
HttpUtil.getCharset() must accept whitespace before the next Content-…
Sep 11, 2026
5019755
codec-dns: Add SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC, ZONEMD record…
hyperxpro Sep 14, 2026
a0faa5e
transport: Avoid io_uring completion callback allocation (#17457)
massiccio Sep 14, 2026
919023e
QUIC: Ensure writable events reflect stream capacity (#17431)
yawkat Sep 14, 2026
b57b83f
OcspServerCertificateValidatorTest: Fix possible leak in test (#17469)
normanmaurer Sep 14, 2026
60d4597
Use github to download cmake and also remove tar file after unpacking…
normanmaurer Sep 15, 2026
c25cc85
build: Upgrade GitHub Actions to fix Node.js 20 deprecation warnings …
normanmaurer Sep 15, 2026
4b3de16
HttpUtil.getMimeType() must not include whitespace before the next Co…
ohchanKyu Sep 16, 2026
8ffa436
Fix buffer leak when recvmmsg returns single UDP_GRO batch (#17493)
octa-one Sep 16, 2026
3061561
Guard ChunkedWriteHandler.doFlush() against re-entrant invocation fro…
fudianchn Sep 16, 2026
9b96442
Add regression test for close() cascade reentering flush() (#17497)
normanmaurer Sep 16, 2026
c3110c9
Fix UDP_GRO segment size is lost when reading with recvmmsg (#17492)
octa-one Sep 16, 2026
c7846dd
KQueueDatagramChannel: rewrite IPv4-wildcard bind to IPv6-any on dual…
normanmaurer Sep 16, 2026
9cbb260
Make CompositeBufferGatheringWriteTest robust against write/close rac…
normanmaurer Sep 17, 2026
8f60926
Add option to ignore MaxDirectMemorySize JVM argument (#17177)
franz1981 Sep 17, 2026
7342fcb
Only build affected Maven modules for PR verification (#17512)
normanmaurer Sep 17, 2026
399263a
Revert "Only build affected Maven modules for PR verification (#17512)"
normanmaurer Sep 17, 2026
b87cb15
Add workflow that will cancel running workflows for merged PRs (#17518)
normanmaurer Sep 17, 2026
f435d97
Harden DnsNameResolverTest against transient null localAddress from T…
normanmaurer Sep 17, 2026
b0a5872
Fix flaky memory leak detection in OcspServerCertificateValidatorTest…
normanmaurer Sep 17, 2026
d1d6e7d
Cache docker build images in ghcr.io to speed up CI (#17530)
normanmaurer Sep 18, 2026
481df02
HTTP/2: Remove failed SETTINGS from ACK queue (#17387)
Gimini-3 Sep 18, 2026
b3231b3
Fix compilation on latest macOS 27.0 (#17529)
normanmaurer Sep 18, 2026
1a43de8
Make `IoEventLoopGroup.isCompatible/isIoType` side-effect free (#17544)
idelpivnitskiy Sep 19, 2026
9f4dc37
Fix flaky memory leak detection in OcspServerCertificateValidatorTest…
normanmaurer Sep 19, 2026
8af38d1
Reset busy counters after triggering an auto-scale-up decision (#17538)
normanmaurer Sep 19, 2026
dd1e53e
Http2ConnectionRoundtripTest: Reduce timing sensitivity to fix CI fla…
normanmaurer Sep 20, 2026
335aed7
ProtobufVarint32FrameDecoder must wait for more data when the length …
ohchanKyu Sep 20, 2026
8ce5930
QpackEncoder.sectionAcknowledgment must not NPE when dynamic table is…
normanmaurer Sep 20, 2026
91a8497
Fix missing readable-bytes check in SmtpResponseDecoder (#17516)
normanmaurer Sep 20, 2026
5c44cb5
Guard against out-of-bounds reads when parsing ClientHello SNI extens…
normanmaurer Sep 20, 2026
ae1798a
Fix IndexOutOfBoundsException from mismatched varint length in Http3F…
normanmaurer Sep 20, 2026
fdd2b67
Fix missing readable-bytes checks in QuicHeaderParser (#17515)
normanmaurer Sep 21, 2026
8488ebd
Http2: Reserve promised stream before running the request verifier (#…
normanmaurer Sep 21, 2026
8cca995
Fix HTTP/3 decoding of frames with zero length payloads (#17564)
violetagg Sep 21, 2026
e9694df
DnsAddressResolverGroupTest: Use a mock DNS server instead of resolvi…
normanmaurer Sep 21, 2026
407eb13
Use random generated LocalAddress in tests that use local transport (…
normanmaurer Sep 21, 2026
6b257ce
POOL: Release Channel when SimpleChannelPool acquire is cancelled (#1…
renechoi Sep 21, 2026
e79185a
Fix missing per-entry clamp in IoUringBufferRing.useBuffer (#17568)
normanmaurer Sep 21, 2026
2436f95
Reject incomplete PUSH_PROMISE request headers when validateRequiredP…
normanmaurer Sep 21, 2026
68466e3
Add regression tests for CANCEL_PUSH/GOAWAY/MAX_PUSH_ID trailing byte…
normanmaurer Sep 21, 2026
9f11eb6
Use 2 EventLoops when running our tests by default (#17567)
normanmaurer Sep 22, 2026
bb3eb5f
Fix flaky HttpToHttp2ConnectionHandlerTest.testChunkedRequestWithBody…
normanmaurer Sep 22, 2026
9676719
Http2ConnectionHandler: report at most one stream error for a Composi…
normanmaurer Sep 22, 2026
7102ef9
Http2MultiplexTransportTest: Fix possible SslContext leak in tests (#…
normanmaurer Sep 22, 2026
22e4967
Restore configurable ioRatio-based task scheduling in SingleThreadIoE…
normanmaurer Sep 22, 2026
cd967a4
Support creating a PropertyKey that is not tied to a specific Http2Co…
normanmaurer Sep 23, 2026
c784721
Reset LengthFieldBasedFrameDecoder state when the frame is shorter th…
allthingssecurity Sep 25, 2026
bd57c82
Auto-port 4.2: SingleThreadEventExecutor: fix race between suspend an…
netty-project-bot Sep 25, 2026
a06df5b
Fix `ByteBuf.setBytes(int, ByteBuffer)` when the source is the buffer…
laosijikaichele Sep 25, 2026
a0c8ddc
Add missing bounds check to `AdaptiveByteBuf.getBytes(...)` channel v…
laosijikaichele Sep 25, 2026
6b93eb6
SingleThreadEventExecutor: fix remaining suspend/cancellation race (#…
normanmaurer Sep 26, 2026
cfb9507
Update lz4-java to 1.12.0 (#17631)
yawkat Sep 26, 2026
901d1c5
Fix connection error scope for SETTINGS_INITIAL_WINDOW_SIZE overflow …
skyguard1 Sep 26, 2026
ee269f5
HTTP/2: Fix stream stall when toggling auto-read on a child channel (…
pandareen Sep 28, 2026
059591d
Run the Linux test legs on ubuntu-24.04 so io_uring buffer ring tests…
franz1981 Sep 28, 2026
ed3c4a5
Update quiche to a new version 0.30.0 (#17642)
sanjomo Sep 28, 2026
c77b880
No need to call `clear()` on `ByteBuffer` after `AdaptiveByteBuf.inte…
laosijikaichele Sep 28, 2026
c4e7d1e
Don't strand tasks when trySuspend() races with startThread() (#17608)
allthingssecurity Sep 28, 2026
6ea0fe2
Use assertInstanceOf/assertThrows instead of assertTrue/fail idioms i…
normanmaurer Sep 29, 2026
4504236
PendingWriteQueue: unlink the write before failing it in removeAndFai…
allthingssecurity Sep 29, 2026
751a5ed
Don't lose HashedWheelTimer timeouts that race with stop() (#17610)
allthingssecurity Sep 29, 2026
2a1b100
Don't corrupt the pipeline when a handler context is removed twice (#…
allthingssecurity Sep 29, 2026
6155c4b
LocalChannel: complete connect() when the accepted channel dies befor…
allthingssecurity Sep 29, 2026
430fdff
Don't leak FixedChannelPool slots on unrelated IllegalArgumentExcepti…
allthingssecurity Sep 29, 2026
9d19e3c
Don't leak queued writes in ChunkedWriteHandler on removal or cancel …
allthingssecurity Sep 29, 2026
e66ce34
Honour the needle's reader index in ByteBufUtil.indexOf(ByteBuf, Byte…
allthingssecurity Sep 30, 2026
4198bde
Close idle outbound HTTP/2 child channels when the parent closes (#17…
allthingssecurity Oct 1, 2026
e6fc471
Only fail in ZlibDecoder when the decompression buffer is full (#17692)
allthingssecurity Oct 1, 2026
44586c5
Fail pending writes of ProxyHandler when it is removed (#17691)
allthingssecurity Oct 1, 2026
d3817ad
Use LocalIoHandler instead of DefaultEventLoop for LocalChannel tests…
normanmaurer Oct 1, 2026
1330f40
Arm force-close timeout when an inbound CLOSE frame is echoed (#17574)
normanmaurer Oct 1, 2026
f364155
Don't count STOMP headers again when the header block is replayed (#1…
allthingssecurity Oct 1, 2026
363d248
Add script that allows to check if a user has signed the icla (#17711)
normanmaurer Oct 1, 2026
9c77622
Complete HTTP/2 graceful close when the connection closes the last st…
allthingssecurity Oct 1, 2026
9afb126
Handle ed25519 and ed448 names in SignatureAlgorithmConverter (#17689)
eager-signal Oct 2, 2026
e7e943d
MqttDecoder accepts malformed MQTT 5 property sections and reclassifi…
normanmaurer Oct 2, 2026
658b570
common: initialize SystemTicker at runtime in native images (#17677)
Asthenia0412 Oct 2, 2026
594e01c
Don't corrupt ChannelOutboundBuffer when a cancelled write makes the …
allthingssecurity Oct 2, 2026
cfed06a
Fail ChunkedNioFile instead of spinning when the file is shorter than…
allthingssecurity Oct 2, 2026
439c831
Validate bzip2 Huffman table selector index before use (#17705)
normanmaurer Oct 2, 2026
70f3035
Reset the permessage-deflate compressor after an empty final fragment…
allthingssecurity Oct 2, 2026
6e1f5f1
Only build and test the affected modules when validating PRs (#17736)
normanmaurer Oct 2, 2026
006a2f1
Fix racy DnsNameResolverTest.testNegativeTtl lifecycle observer check…
normanmaurer Oct 2, 2026
d84dc6b
Fix retainedSlice() of non-retained pooled derived buffers (#17759)
lhotari Oct 5, 2026
2e28f31
Build using powershell on Windows (#17766)
chrisvest Oct 6, 2026
85498e0
Fix quadratic scanning in DelimiterBasedFrameDecoder for non-line del…
normanmaurer Sep 17, 2026
57b80fc
SpdyHttpDecoder: bound cumulative HEADERS frame size per stream
normanmaurer Sep 17, 2026
9b41ea7
Decoded nested HAProxy SSL TLVs re-encode with an inconsistent PROXY …
normanmaurer Sep 11, 2026
da4c183
Release QPACK blocked stream slot when a blocked stream is abandoned
violetagg Sep 29, 2026
faec63c
HTTP1: Stricter multipart per-part Content-Type validation
chrisvest Oct 1, 2026
f4081c5
CorsHandler omits Vary: Origin for the null-origin branch, unlike eve…
normanmaurer Sep 11, 2026
9f49687
HTTP/2: Limit buffered memory for table size changes
ejona86 Sep 23, 2026
4029f07
Correctly handle multiple Content-Length
violetagg Sep 14, 2026
c3f7088
Netty OcspServerCertificateValidator still delivers buffered data fro…
normanmaurer Sep 11, 2026
20f3aae
Fail closed on zero-length handshake records in SslClientHelloHandler
normanmaurer Sep 17, 2026
4cacdf0
Fix quadratic CPU usage in XmlFrameDecoder when an element is never b…
normanmaurer Sep 17, 2026
ef3a3e1
Fix sign-extension bug in SocksInitRequestDecoder NMETHODS field
normanmaurer Sep 21, 2026
6b02cd3
Fix wrong nextBid computation in IoUringBufferRing for RECVSEND_BUNDLE
normanmaurer Sep 24, 2026
bccc62a
Bound domain-name decode buffer to avoid quadratic allocation
normanmaurer Sep 22, 2026
d82c6c3
Fix IP allow-list bypass from ruleType-blind dedup in IpSubnetFilter
normanmaurer Sep 21, 2026
e863e69
Fix io_uring domain socket fd leak on multi-fd SCM_RIGHTS messages
normanmaurer Sep 18, 2026
64cc10f
[maven-release-plugin] prepare release netty-4.2.19.Final
netty-project-bot Oct 6, 2026
014ef8d
[maven-release-plugin] prepare for next development iteration
netty-project-bot Oct 6, 2026
de7fa89
Fix sendmsg_zc leaking IovArray limits and causing empty writev submi…
dreamlike-ocean Oct 11, 2026
1addbf9
Do not let a negatively cached search domain shadow a positive one (#…
akilegaspi Oct 14, 2026
169275f
Fix musl verify job (#17801)
normanmaurer Oct 14, 2026
3eaff63
Reject Redis lines that start with LF (#17793)
yawkat Oct 14, 2026
84c167e
Choose server key types from client's signature algorithms for TLS 1.…
eager-signal Oct 14, 2026
aa00c11
Port 4.2: LocalChannel: Deliver data written by the peer before it cl…
normanmaurer Oct 14, 2026
a3d6289
Validate padding of HEADERS frames without priority (#17817)
bryce-anderson Oct 15, 2026
d18c480
Don't spin in SslHandler.wrapMultiple(...) when the engine consumes n…
allthingssecurity Oct 15, 2026
897ff2e
Preserve invalid SNI names in `ReferenceCountedOpenSslEngine` (#17781)
gavinbunney Oct 15, 2026
d972cae
Optimize redundant bounds checking in ByteBuf.setBytes (#17023)
vpelikh Oct 15, 2026
8ee32af
Respect SETTINGS_QPACK_BLOCKED_STREAMS for unacknowledged QPACK entri…
allthingssecurity Oct 15, 2026
163235f
Release the DNS response when a query future loses a cancel race (#17…
watson-ryan Oct 15, 2026
103787e
Lazily instantiate VarHandle JCTools queues via holder class (#17750)
arnabnandy7 Oct 15, 2026
ff5a1b2
Keep reading a closed QUIC stream until the end of its input (#17755)
allthingssecurity Oct 15, 2026
60d9baf
Throw UnsupportedOperationException from AdaptiveByteBuf.memoryAddres…
normanmaurer Oct 15, 2026
f25d65c
HAProxyMessage: validate the length of all TLV types (#17834)
yawkat Oct 15, 2026
b2df25a
Fix HpackDynamicTable losing entries when filled to capacity (#17831)
yawkat Oct 15, 2026
b23c19d
Make AdaptiveByteBuf.memoryAddress() faster (#17767)
lhotari Oct 15, 2026
491036d
Validate bzip2 Huffman code lengths before building decode tables (#1…
Raghuvardhan-Reddy78 Oct 16, 2026
7071539
Validate header values on DefaultHeaders.copy(), bulk add, entry setV…
normanmaurer Oct 16, 2026
918c7c2
Throw DecompressionException on JdkZlib preset dictionary mismatch (#…
yawkat Oct 16, 2026
8bed05e
Reject HTTP version numbers that overflow int (#17836)
yawkat Oct 16, 2026
fcac457
Apply certificate list size floor (#17674)
arnabnandy7 Oct 16, 2026
b0ffcaf
HAProxyMessageEncoder: encode v1 PROXY UNKNOWN headers (#17837)
yawkat Oct 16, 2026
4a80f41
HAProxyMessage: decode TLVs with an empty value at the end of the hea…
yawkat Oct 16, 2026
a143321
Reject invalid content-length in PUSH_PROMISE with a stream error (#1…
yawkat Oct 16, 2026
46ee86b
Honor maxAllocation for brotli in DelegatingDecompressorFrameListener…
yawkat Oct 16, 2026
27a6921
HAProxyMessageDecoder: fix v2 header framing with a non-zero reader i…
yawkat Oct 16, 2026
afb80a7
IpSubnetFilter: Add tests for overlapping rules (#17765)
Raghuvardhan-Reddy78 Oct 16, 2026
ee7ab44
Avoid allocating NIO buffer views in AdaptiveByteBuf.setBytes(int, By…
lhotari Oct 16, 2026
682d225
Skip JNDI nameserver lookup on IBM i (#17872)
manish-9245 Oct 17, 2026
32de60d
Reset the h2c upgrade stream if the request can not be converted (#17…
yawkat Oct 17, 2026
4aa383f
Don't size ZstdDecoder output buffers from the frame content size (#1…
Raghuvardhan-Reddy78 Oct 18, 2026
1b2300d
Fix NPE in Http2FrameCodec when h2c upgrade fails (#17871)
yawkat Oct 18, 2026
5a6ca7d
Allow adaptive allocator magazine cleanup in BlockHound (#17849)
cj848 Oct 18, 2026
3009c9a
GroupsConverter: fix the x25519mlkem768 group name (#17898)
normanmaurer Oct 18, 2026
098e103
Don't count insertions twice in QPACK Insert Count Increments (#17756)
allthingssecurity Oct 19, 2026
07aed99
Don't lose frames when a delimiter is split across reads (#17665)
allthingssecurity Oct 19, 2026
ecdd3de
Register JFR events only once a Flight Recorder exists (#17614)
yawkat Oct 19, 2026
3ab4fff
Improve OcspServerCertificateValidatorTest.connectUsingHttpAndValidat…
normanmaurer Oct 19, 2026
28d5d02
Don't use the network in OcspClientTest.simpleOcspQueryTest (#17908)
normanmaurer Oct 19, 2026
777eeaa
Read SOCKS5 length octets unsigned in the legacy socks decoders (#17912)
Raghuvardhan-Reddy78 Oct 19, 2026
07153e9
Fix truncated output in Brotli decoders (#17870)
yawkat Oct 19, 2026
e526345
Reject truncated QPACK prefixed integers in field section decode (#17…
Raghuvardhan-Reddy78 Oct 19, 2026
0d74583
Resolve malloc/free via dlsym(RTLD_DEFAULT) in CleanerJava24Linker (#…
jwils Oct 19, 2026
361dd38
Wrap trailing ';' in Content-Disposition as ErrorDataDecoderException…
HwangRock Oct 19, 2026
32eda3a
Auto-port 4.2: Limit the number of queued tasks in NioEventLoopTest.t…
netty-project-bot Oct 20, 2026
20a1bd9
Avoid reflection when obtaining the process ID on Java 9+ (#17873)
zsewasdsdsd Oct 20, 2026
6707372
Keep WINDOW_UPDATE credit of reserved HTTP/2 streams on activation (#…
allthingssecurity Oct 20, 2026
ec8db20
IoUring: Apply IOV_MAX to each write instead of to all writes until s…
dreamlike-ocean Oct 20, 2026
23540b0
Add consistent TLS certificate compression support (#17548)
arnabnandy7 Oct 20, 2026
7c2e7be
Port 4.2: Don't use the network in OcspServerCertificateValidatorTest…
normanmaurer Oct 20, 2026
03eeaca
Avoid unnecessary String allocation in WebSocketServerProtocolHandsha…
fru1tworld Oct 20, 2026
8b2a636
Port 4.2: io_uring: Don't let msgHdrMemoryArray() clear the iovecs of…
normanmaurer Oct 20, 2026
1ed8322
Refresh CA bundle before downloading the aarch64 GCC toolchain (#17948)
normanmaurer Oct 20, 2026
96b5e68
Accept empty non-final fragments in PerMessageDeflateEncoder (#17943)
normanmaurer Oct 20, 2026
154e87c
Exclude the ProcessHandle stub from Surefire in common and buffer (#1…
franz1981 Oct 20, 2026
d6bece5
Verify toolchain downloads in release Dockerfiles against pinned SHA-…
normanmaurer Oct 21, 2026
5776ebc
HTTP/2: Don't pass the close promise to a deferred close (#17955)
idelpivnitskiy Oct 21, 2026
75a5375
Port 4.2: Fix flaky Http2MultiplexTest.unhandledHttp2FramesShouldBePr…
normanmaurer Oct 21, 2026
6511bfb
Fix endless value iterators in ReadOnlyHttpHeaders (#17961)
CCCLL Oct 21, 2026
71ebf52
Hash all 8-byte blocks in SipHash.macHash(...) when position is not 0…
Marti2203 Oct 21, 2026
b7f1c9c
Fix AsciiString.contains(...) false negatives after a partial match (…
CCCLL Oct 21, 2026
b06dfab
Auto-port 4.2: Increase poll timeout in HttpContentCompressorTest.tes…
netty-project-bot Oct 21, 2026
dd5a7e6
Don't invert IP_MULTICAST_LOOP_DISABLED in NioDatagramChannelConfig (…
Marti2203 Oct 21, 2026
570d313
Fix flaky DatagramUnicastIPv6MappedTest on macOS (#17981)
normanmaurer Oct 21, 2026
345af11
Add HpackDecoder test for non-token HTTP/2 header names (#17979)
normanmaurer Oct 21, 2026
9c80298
Don't drop the last character in AsciiString.trim(CharSequence) (#17968)
Marti2203 Oct 21, 2026
19e950b
Fix the region copied by Unpooled.copiedBuffer(CharSequence, int, int…
Marti2203 Oct 21, 2026
192d06e
Port 4.1: Don't invert IP_MULTICAST_LOOP_DISABLED in NioDatagramChann…
normanmaurer Oct 22, 2026
1bf1ac3
Treat DATA frames on reserved HTTP/2 streams as a connection error (#…
yawkat Oct 22, 2026
dc5655e
Http2: reject generic frames whose payload exceeds SETTINGS_MAX_FRAME…
AbhishekShukla1289 Oct 22, 2026
66dc5e6
Don't loop forever in AbstractDiskHttpData when the file is short (#1…
Marti2203 Oct 22, 2026
f69f14a
Check the second gzip magic byte in JdkZlibDecoder (#17972)
Marti2203 Oct 22, 2026
3073066
Reject reply codes with non-digit characters in SmtpResponseDecoder (…
Marti2203 Oct 22, 2026
5f89d65
Return null or the default from read-only headers for invalid values …
CCCLL Oct 22, 2026
bd41b40
MqttEncoder: Reject Variable Byte Integers larger than 268435455 (#17…
normanmaurer Oct 22, 2026
7a6f630
Fix server-initiated WebSocket close handshake failing with "promise …
normanmaurer Oct 22, 2026
e0f2db4
Fix Snappy.encode(...) for input with a non-zero reader index (#18019)
Marti2203 Oct 22, 2026
14d1d84
Fill every remaining byte in the Java 8 SplittableRandom.nextBytes fa…
Marti2203 Oct 22, 2026
12c5eb7
Cancel queued runs and runs of fork PRs when a PR is merged (#18026)
normanmaurer Oct 22, 2026
7999377
Complete the TCP fast open connect before notifying the initial write…
normanmaurer Oct 23, 2026
6ee2740
Only delete socket files when binding and closing UDS channels (#17980)
normanmaurer Oct 23, 2026
4813615
Port 4.1: Complete the TCP fast open connect before notifying the ini…
normanmaurer Oct 23, 2026
a20f453
Use a long file offset when splicing a DefaultFileRegion with io_urin…
Marti2203 Oct 23, 2026
a8fa981
Read tv_nsec from the correct offset in QuicheSendInfo.getAtNanos (#1…
normanmaurer Oct 23, 2026
aeafc7a
Don't truncate the token length of QUIC Initial packets to an int (#1…
normanmaurer Oct 23, 2026
2018abb
Port 4.1: Don't use the network in testsuite-jpms OCSPTest (#18043) (…
normanmaurer Oct 23, 2026
c9361f8
Don't use a negative index in QuicCodecDispatcher (#18048)
normanmaurer Oct 23, 2026
6deec69
Fix bad placement of @Test
normanmaurer Oct 23, 2026
dd1e532
Reject too long UDS paths in sendTo instead of truncating them (#18022)
normanmaurer Oct 23, 2026
8688fa7
Fix FastLz.readU16 when the reader index is not 0 (#18054)
normanmaurer Oct 23, 2026
da647a2
Fail to encode DNS messages that are too large for TCP (#18058)
normanmaurer Oct 23, 2026
e20409e
Return the haystack's reader index from ByteBufUtil.indexOf(...) for …
CCCLL Oct 23, 2026
513bd91
Return -1 from StringUtil.decodeHexNibble(byte) for non-ASCII bytes (…
CCCLL Oct 23, 2026
b495b12
Fix flaky AutoScalingEventExecutorChooserFactoryTest on Windows (#18079)
normanmaurer Oct 24, 2026
7b1d820
Port 4.1: Fix FastLz.readU16 when the reader index is not 0 (#18054) …
normanmaurer Oct 24, 2026
c13df29
Port 4.1: Reject too long UDS paths in sendTo instead of truncating t…
normanmaurer Oct 24, 2026
0ba649e
Don't return an entry twice when removing while iterating a primitive…
CCCLL Oct 24, 2026
e0f3bd9
Mark disk-based HttpData as completed after setting empty content (#1…
CCCLL Oct 24, 2026
cd4d3a1
Don't sign-extend the trailing bytes in SipHash (#18047)
normanmaurer Oct 24, 2026
5a4a2b2
Release a SPDY DATA frame that exceeds the session window (#18089)
Marti2203 Oct 24, 2026
069c2a7
Keep throttling the producer while the executor is shutting down in N…
normanmaurer Oct 26, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
RedisArrayAggregator nested RESP headers multiply patched preallocati…
…on limits

Motivation:

RedisArrayAggregator recently added maxElements and maxNestedArrayDepth limits to fix public Redis resource-exhaustion advisories. The limits are independent, but the allocator remains eager: every positive nested RESP array header creates new ArrayList<RedisMessage>(length) before any child element exists.
With the default constructor, an attacker can send nested array headers with length 1,000,000 until the default nesting limit of 1024 is reached. This can reserve up to 1,024,000,000 child slots from roughly 12 KB of RESP input. This is backing capacity, not logical list size: ArrayList(int) constructs an empty list with the specified initial capacity.

Modifications:

— added a pendingElements counter tracking the sum of declared lengths across all currently active nested AggregateStates. A new header is now rejected if it would push that total over maxElements, closing the gap where
  maxElements and maxNestedArrayDepth could multiply (e.g. 1,000,000 × 1024). The counter is decremented as arrays complete and reset on error/teardown.
- Bounded eager allocation — AggregateState's backing ArrayList is now created with Math.min(length, 32) initial capacity instead of the attacker-declared length, so a single large header no longer reserves proportional backing capacity up front.
- Added tests

Result:

Enforce limits
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer
normanmaurer committed Sep 9, 2026
commit 71675c6fde2c14e3f1e65cd5e022da65ac9c629e

There are no files selected for viewing

31 changes: 29 additions & 2 deletions 31 codec-redis/src/main/java/io/netty/handler/codec/redis/RedisArrayAggregator.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,22 @@
public final class RedisArrayAggregator extends MessageToMessageDecoder<RedisMessage> {

private static final int DEFAULT_MAX_ARRAY_LENGTH = RedisConstants.REDIS_MAX_ARRAY_LENGTH;

// Bound the eagerly reserved backing capacity of an aggregate's child list, regardless of the
// length declared in the array header. The list can still grow to the declared length as
// elements actually arrive.
private static final int INITIAL_CHILDREN_CAPACITY = 32;

private final int maxNestedArrayDepth;
private final Deque<AggregateState> depths = new ArrayDeque<AggregateState>(4);
private final int maxElements;

// Sum of the declared lengths of all currently active (nested) aggregate states. Bounding this
// total, rather than each header individually, prevents an attacker from multiplying the
// per-header element cap by the nesting depth cap to reserve far more backing capacity than
// maxElements alone would suggest.
private long pendingElements;

/**
* Create a new instance that will aggregate an {@link ArrayHeaderRedisMessage}
* and its subsequent elements into an {@link ArrayRedisMessage}.
Expand All @@ -61,7 +73,7 @@ public RedisArrayAggregator() {
* <p>
* A {@link CodecException} will be thrown if the array header specify a length greater than
* the given number of max elements.
* @param maxElements The maximum number of elements to aggregate in a single message.
* @param maxElements The maximum number of elements to aggregate in a single message. This applies cumulatively.
* @param maxNestedArrayDepth the maximum depth of the nested array before an exception will be thrown
*/
public RedisArrayAggregator(int maxElements, int maxNestedArrayDepth) {
Expand Down Expand Up @@ -89,6 +101,7 @@ protected void decode(ChannelHandlerContext ctx, RedisMessage msg, List<Object>
if (current.children.size() == current.length) {
msg = new ArrayRedisMessage(current.children);
depths.pop();
pendingElements -= current.length;
} else {
// not aggregated yet. try next time.
return;
Expand Down Expand Up @@ -117,6 +130,19 @@ private RedisMessage decodeRedisArrayHeader(ArrayHeaderRedisMessage header) {
if (depths.size() >= maxNestedArrayDepth) {
throw clearAndCreateException("max nested array depth exceeded: " + maxNestedArrayDepth);
}

// Bound the total number of elements declared across all currently active (nested)
// aggregate states, not just the length of this one header. Without this, a header's
// declared length could be repeated at every nesting level, letting maxElements and
// maxNestedArrayDepth multiply into a far larger reserved capacity than either limit
// implies on its own.
long newPendingElements = pendingElements + header.length();
if (newPendingElements > maxElements) {
throw clearAndCreateException(
"total outstanding array elements exceeds " + maxElements);
}
pendingElements = newPendingElements;

// start aggregating array
depths.push(new AggregateState((int) header.length()));
return null;
Expand All @@ -130,7 +156,7 @@ private static final class AggregateState {
private final List<RedisMessage> children;
AggregateState(int length) {
this.length = length;
this.children = new ArrayList<RedisMessage>(length);
this.children = new ArrayList<RedisMessage>(Math.min(length, INITIAL_CHILDREN_CAPACITY));
}
}

Expand All @@ -147,6 +173,7 @@ private void releaseAndClearDepths() {
}
}
depths.clear();
pendingElements = 0;
}

@Override
Expand Down
41 changes: 41 additions & 0 deletions 41 codec-redis/src/test/java/io/netty/handler/codec/redis/RedisArrayAggregatorTest.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;

public class RedisArrayAggregatorTest {

Expand All @@ -43,6 +44,46 @@ public void testLimitNested() {
assertFalse(channel.finishAndReleaseAll());
}

@Test
public void testTotalPendingElementBudgetAcrossNestedArrays() {
// maxElements and maxNestedArrayDepth are independent limits. Each header below stays
// within maxElements on its own, and the nesting never reaches maxNestedArrayDepth, but
// the total number of elements declared across the active nested arrays would multiply
// out to maxElements * maxNestedArrayDepth if the two limits were not also bounded jointly.
int maxElements = 4096;
int maxNestedArrayDepth = 4;
EmbeddedChannel channel = new EmbeddedChannel(
new RedisArrayAggregator(maxElements, maxNestedArrayDepth));

assertFalse(channel.writeInbound(new ArrayHeaderRedisMessage(maxElements)));

// A second header of the same declared length pushes the total outstanding element count
// to 2 * maxElements, which must be rejected even though this header, considered alone,
// and the resulting nesting depth of 2 both stay within their respective limits.
assertThrows(CodecException.class,
() -> channel.writeInbound(new ArrayHeaderRedisMessage(maxElements)));
assertFalse(channel.finish());
}

@Test
public void testPendingElementBudgetIsReclaimedOnceArrayCompletes() {
int maxElements = 4096;
int maxNestedArrayDepth = 4;
EmbeddedChannel channel = new EmbeddedChannel(
new RedisArrayAggregator(maxElements, maxNestedArrayDepth));

// Complete a full array so its declared length is released from the outstanding budget.
assertFalse(channel.writeInbound(new ArrayHeaderRedisMessage(1)));
FullBulkStringRedisMessage element = new FullBulkStringRedisMessage(Unpooled.buffer());
assertTrue(channel.writeInbound(element));
((ArrayRedisMessage) channel.readInbound()).release();

// The budget should now allow a fresh header declaring up to maxElements again.
assertFalse(channel.writeInbound(new ArrayHeaderRedisMessage(maxElements)));

assertThrows(PrematureChannelClosureException.class, channel::finish);
}

@Test
void testDoesNotLeakOnClose() {
EmbeddedChannel ch = new EmbeddedChannel(new RedisArrayAggregator());
Expand Down
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.