Skip to content

Auto-port 5.0: Bzip2: Correctly detect overflow during block size bound check - #17272

Merged
normanmaurer merged 1 commit into
5.0from
auto-port-pr-17261-to-5.0
Aug 13, 2026
Merged

normanmaurer merged 1 commit into
5.0from
auto-port-pr-17261-to-5.0

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #17261 to 5.0
Cherry-picked commit: 4b8e8a8


Motivation:

We did not correctly detect the overflow and so did end up throwing an ArrayIndexOutOfBoundsException while we should have thrown an DecompressionException

Modifications:

  • Correctly detect the overflow
  • Add unit test

Result:

Throw correct exception

Motivation:

We did not correctly detect the overflow and so did end up throwing an
ArrayIndexOutOfBoundsException while we should have thrown an
DecompressionException

Modifications:

- Correctly detect the overflow
- Add unit test

Result:

Throw correct exception

(cherry picked from commit 4b8e8a8)
@testlens-app

testlens-app Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

🚨 TestLens detected 1 failed test 🚨

Here is what you can do:

  1. Inspect the test failures carefully.
  2. If you are convinced that some of the tests are flaky, you can mute them below.
  3. Finally, trigger a rerun by checking the rerun checkbox.

Test Summary

Build PR / linux-x86_64-java25-unsafe-buffer build > Netty/Handler

Test Runs Flakiness
OpenSslCertificateCompressionTest ❌ 0% 🟢

Build PR / windows-x86_64-java25-boringssl > Netty/Buffer

Test Runs Flakiness
PooledLittleEndianDirectByteBufTest > testCopyMultipleThreads0() ⚠️ 0% 🟢

🏷️ Commit: 1321c3f
▶️ Tests: 189479 executed
⚪️ Checks: 12/12 completed

Test Failures

OpenSslCertificateCompressionTest (Netty/Handler in Build PR / linux-x86_64-java25-unsafe-buffer build)
java.lang.IllegalStateException: Possible memory leak detected for resource scope 'OpenSslCertificateCompressionTest'. Please use paranoid leak detection to get more information, or set -Dio.netty.util.LeakPresenceDetector.trackCreationStack=true
	at io.netty.util.LeakPresenceDetector$ResourceScope.check(LeakPresenceDetector.java:308)
	at io.netty.util.LeakPresenceDetector$ResourceScope.close(LeakPresenceDetector.java:328)
	at io.netty.util.test.LeakPresenceExtension.afterAll(LeakPresenceExtension.java:140)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:511)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.tryRemoveAndExec(ForkJoinPool.java:1490)
	at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2248)
	at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:499)
	at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:666)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:511)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1450)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2019)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
PooledLittleEndianDirectByteBufTest > testCopyMultipleThreads0() (Netty/Buffer in Build PR / windows-x86_64-java25-boringssl)
java.util.concurrent.TimeoutException
	at java.base/java.util.concurrent.CyclicBarrier.dowait(CyclicBarrier.java:259)
	at java.base/java.util.concurrent.CyclicBarrier.await(CyclicBarrier.java:437)
	at io.netty.buffer.AbstractByteBufTest$31.run(AbstractByteBufTest.java:2379)
	at java.base/java.lang.Thread.run(Thread.java:1474)

Muted Tests

Select tests to mute in this pull request:

  • OpenSslCertificateCompressionTest
  • PooledLittleEndianDirectByteBufTest > testCopyMultipleThreads0()

Reuse successful test results:

  • ♻️ Only rerun the tests that failed or were muted before

Click the checkbox to trigger a rerun:

  • Rerun jobs

Learn more about TestLens at testlens.app.

@normanmaurer
normanmaurer merged commit dccb26b into 5.0 Aug 13, 2026
10 of 13 checks passed
@normanmaurer
normanmaurer deleted the auto-port-pr-17261-to-5.0 branch August 13, 2026 07:13
@normanmaurer normanmaurer added this to the 5.0.0.Final milestone Aug 13, 2026
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.

2 participants