Skip to content

Auto-port 5.0: IpFilter: Fix ClassCastException caused by IpSubnetFilter if only ipv6 rules are configured but remote peer is using ipv4#16821

Merged
normanmaurer merged 1 commit into
5.0from
auto-port-pr-16803-to-5.0
May 18, 2026
Merged

Auto-port 5.0: IpFilter: Fix ClassCastException caused by IpSubnetFilter if only ipv6 rules are configured but remote peer is using ipv4#16821
normanmaurer merged 1 commit into
5.0from
auto-port-pr-16803-to-5.0

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16803 to 5.0
Cherry-picked commit: 0ccb265


Motivation:

We did miss an instanceof check which could cause a CCE.

Modifications:

  • Add missing instanceof check
  • Add unit tests

Result:

No more ClassCastException

…6 rules are configured but remote peer is using ipv4 (#16803)

Motivation:

We did miss an instanceof check which could cause a CCE.

Modifications:

- Add missing instanceof check
- Add unit tests

Result:

No more ClassCastException

(cherry picked from commit 0ccb265)
@normanmaurer normanmaurer added this to the 5.0.0.Final milestone May 18, 2026
@normanmaurer normanmaurer merged commit c079cd2 into 5.0 May 18, 2026
22 of 23 checks passed
@normanmaurer normanmaurer deleted the auto-port-pr-16803-to-5.0 branch May 18, 2026 18:27
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