• S
    fix inet_pton · 78f88915
    Szabolcs Nagy 提交于
    * parse IPv4 dotted-decimal correctly (without strtoul, no leading zeros)
    * disallow single leading ':' in IPv6 address
    * allow at most 4 hex digits in IPv6 address (according to RFC 2373)
    * have enough hex fields in IPv4 mapped IPv6 address
    * disallow leading zeros in IPv4 mapped IPv6 address
    78f88915
inet_pton.c 1.4 KB