Skip to content

Bzip2: Correctly detect overflow during block size bound check (#17261) - #17273

Merged
normanmaurer merged 1 commit into
4.1from
bzip2_41
Aug 13, 2026
Merged

normanmaurer merged 1 commit into
4.1from
bzip2_41

Conversation

@normanmaurer

Copy link
Copy Markdown
Member

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
@testlens-app

testlens-app Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

✅ All tests passed ✅

⚠️ TestLens detected flakiness ⚠️

Test Summary

Build PR / linux-x86_64-java17 build > Netty/Resolver/DNS

Test Runs Flakiness
DnsNameResolverTest > testNegativeTtl(DnsNameResolverChannelStrategy) > [2] ChannelPerResolution ❌ ✅ 0% 🟢

🏷️ Commit: de81df8
▶️ Tests: 222936 executed
🟡 Checks: 16/18 completed


Learn more about TestLens at testlens.app.

@normanmaurer
normanmaurer merged commit c50a6bc into 4.1 Aug 13, 2026
25 of 34 checks passed
@normanmaurer
normanmaurer deleted the bzip2_41 branch August 13, 2026 08:39
lltopk pushed a commit to lltopk/netty that referenced this pull request Oct 24, 2026
…#17261) (netty#17273)

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

1 participant