Skip to content

#19329 fix ipv4 vs ipv6 in ip inet address matcher#19330

Open
winfriedgerlach wants to merge 2 commits into
spring-projects:mainfrom
winfriedgerlach:#19329-fix-ipv4-vs-ipv6-in-IpInetAddressMatcher
Open

#19329 fix ipv4 vs ipv6 in ip inet address matcher#19330
winfriedgerlach wants to merge 2 commits into
spring-projects:mainfrom
winfriedgerlach:#19329-fix-ipv4-vs-ipv6-in-IpInetAddressMatcher

Conversation

@winfriedgerlach

Copy link
Copy Markdown

Closes #19329

…to avoid ArrayIndexOutOfBoundsException

Signed-off-by: Gerlach, Winfried <Winfried.Gerlach@draeger.com>
Signed-off-by: Gerlach, Winfried <Winfried.Gerlach@draeger.com>
@winfriedgerlach winfriedgerlach force-pushed the #19329-fix-ipv4-vs-ipv6-in-IpInetAddressMatcher branch from aa61e39 to 0943cb1 Compare June 12, 2026 18:03
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 12, 2026
.format("IP address %s is too short for bitmask of length %d", requiredAddress, this.nMaskBits));
}

private static InetAddress parse(String address) {

@winfriedgerlach winfriedgerlach Jun 12, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was unused residue from the earlier refactoring

if (toCheck == null) {
return false;
}
if (!this.requiredAddress.getClass().equals(toCheck.getClass())) {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this check was present before 7.1.0, I am just re-introducing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ArrayIndexOutOfBoundsException using IpAddressMatcher 7.1

2 participants