| Commit message (Expand) | Author | Age | Files | Lines |
| * | fix internal buffer overrun in inet_pton•••one stop condition for parsing abbreviated ipv6 addressed was missed,
allowing the internal ip[] buffer to overflow. this patch adds the
missing stop condition and masks the array index so that, in case
there are any remaining stop conditions missing, overflowing the
buffer is not possible.
| Rich Felker | 2015-03-23 | 1 | -2/+3 |
| * | remove an unnecessary check in inet_pton•••at most 4 hexadecimal digits are processed in one field so the
value cannot overflow. the netdb.h header was not used.
| Szabolcs Nagy | 2013-12-12 | 1 | -2/+1 |
| * | fix inet_pton•••* 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
| Szabolcs Nagy | 2013-10-23 | 1 | -26/+19 |
| * | fix return value for inet_pton in ipv6 failure cases•••in the case of input that does not match the expected form, the
correct return value is 0, not -1.
| Rich Felker | 2013-10-19 | 1 | -6/+6 |
| * | use restrict everywhere it's required by c99 and/or posix 2008•••to deal with the fact that the public headers may be used with pre-c99
compilers, __restrict is used in place of restrict, and defined
appropriately for any supported compiler. we also avoid the form
[restrict] since older versions of gcc rejected it due to a bug in the
original c99 standard, and instead use the form *restrict.
| Rich Felker | 2012-09-06 | 1 | -1/+1 |
| * | fix bug in ipv6 parsing that prevented parsing a lone "::" | Rich Felker | 2011-04-25 | 1 | -4/+1 |
| * | ipv6 parsing code (formerly dummied-out) | Rich Felker | 2011-04-25 | 1 | -6/+56 |
| * | fix bogus return values for inet_pton | Rich Felker | 2011-04-21 | 1 | -2/+2 |
| * | initial check-in, version 0.5.0 | Rich Felker | 2011-02-12 | 1 | -0/+31 |