Skip to content

IPv6 address validation accepts invalid addresses #112511

@a1313-cloud

Description

@a1313-cloud

Tested versions

v4.5.1.stable.official

System information

Debian 12, Micro-Star International Co., Ltd. MS-7B84, AMD Ryzen™ 7 PRO 1700X × 16

Issue description

The ip address validation of Strings does not work properly. The Ip-Address "FF00::::::::" is accepted as valid, even though it is an invalid address. I found this when having crashes without error messages when using thejoin_multicast_group function of the PacketPeerUDP.

Steps to reproduce

"FF00::::::::".is_valid_ip_address() returns true, even though it should return false

Minimal reproduction project (MRP)

ip-6-test.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions