Skip to content

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

Merged
normanmaurer merged 1 commit into
4.2from
bzip_overflow
Aug 12, 2026
Merged

normanmaurer merged 1 commit into
4.2from
bzip_overflow

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
@normanmaurer

Copy link
Copy Markdown
Member Author

Thanks to @rajivraj for reporting

@normanmaurer normanmaurer added this to the 4.2.18.Final milestone Aug 11, 2026
@normanmaurer normanmaurer added needs-cherry-pick-4.1 This PR should be cherry-picked to 4.1 once merged. needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. labels Aug 11, 2026
@testlens-app

testlens-app Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: e14d8aa
▶️ Tests: 452031 executed
⚪️ Checks: 23/23 completed


Learn more about TestLens at testlens.app.

@normanmaurer
normanmaurer merged commit 4b8e8a8 into 4.2 Aug 12, 2026
24 checks passed
@normanmaurer
normanmaurer deleted the bzip_overflow branch August 12, 2026 17:06
@netty-project-bot

Copy link
Copy Markdown
Contributor

Could not create auto-port PR.
Got conflicts when cherry-picking onto 4.1.

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port PR for 5.0: #17272

@normanmaurer

Copy link
Copy Markdown
Member Author

Port for 4.1 #17273

normanmaurer added a commit that referenced this pull request Aug 13, 2026
…nd check (#17272)

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

Co-authored-by: Norman Maurer <[email protected]>
normanmaurer added a commit that referenced this pull request Aug 13, 2026
… (#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
@normanmaurer normanmaurer mentioned this pull request Oct 1, 2026
@normanmaurer normanmaurer removed the needs-cherry-pick-4.1 This PR should be cherry-picked to 4.1 once merged. label Oct 16, 2026
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.

3 participants