Skip to content

Fix IP range null safety and add security IP tests#58369

Open
amussara wants to merge 1 commit intonextcloud:masterfrom
amussara:fix/security-ip-tests-and-null-safety
Open

Fix IP range null safety and add security IP tests#58369
amussara wants to merge 1 commit intonextcloud:masterfrom
amussara:fix/security-ip-tests-and-null-safety

Conversation

@amussara
Copy link

Null pointer fix in Range::contains() + 33 new PHP tests. 355 lines.

…ests for IP security classes

- Fix potential null pointer in Range::contains() where Factory::parseAddressString
  could return null, which would be passed directly to RangeInterface::contains()
- Add comprehensive unit tests for Address class (valid/invalid parsing, isValid, matches, toString)
- Add comprehensive unit tests for Range class (valid/invalid parsing, isValid, contains, toString)
- Add comprehensive unit tests for Factory class (interface compliance, integration tests)

Signed-off-by: amussara <amussara@users.noreply.github.com>
@amussara amussara requested a review from a team as a code owner February 16, 2026 23:30
@amussara amussara requested review from Altahrim, ArtificialOwl, CarlSchwan and leftybournes and removed request for a team February 16, 2026 23:30
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