about summary refs log tree commit diff
path: root/src/network/getifaddrs.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2013-10-22 12:28:17 +0000
committerSzabolcs Nagy <nsz@port70.net>2013-10-22 12:28:17 +0000
commit51c4e451db10317616e557a7aa7922bababa77d5 (patch)
tree4af96779ba2fe11555849fd60a336141e7c96e35 /src/network/getifaddrs.c
parent59b8dc08f712f156dd54e0aba50e4e647524ec8c (diff)
downloadmusl-51c4e451db10317616e557a7aa7922bababa77d5.tar.gz
musl-51c4e451db10317616e557a7aa7922bababa77d5.tar.xz
musl-51c4e451db10317616e557a7aa7922bababa77d5.zip
fix __ipparse to parse the generic numbers-and-dots IPv4 format correctly
* allow at most 4 parts
* bounds check the parts correctly
* disallow leading whitespace and sign
* check the address family before falling back to IPv6
Diffstat (limited to 'src/network/getifaddrs.c')
0 files changed, 0 insertions, 0 deletions