commit | 7359f104c202a6e36212324cdd5aba7964737e9d | [log] [tgz] |
---|---|---|
author | Ben Hutchings <ben@decadent.org.uk> | Thu Mar 21 23:12:47 2024 +0100 |
committer | Ben Hutchings <ben@decadent.org.uk> | Thu Mar 21 23:30:45 2024 +0100 |
tree | 45a2bfe7126eb6c4e871832dc1e886c1cd3a23e5 | |
parent | d539458148cb998600b4596227cd52eb1ca930da [diff] |
[klibc] inet: Stricter IPv6 field parsing in inet_pton() We currently don't range-check the fields of an IPv6 address, so the following strings are wrongly accepted: "10000::" "::10000" Since we currently only support hexadecimal fields, implement the range check by limiting the number of digits to 4. Signed-off-by: Ben Hutchings <ben@decadent.org.uk>