[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-devel] [ip4addr_aton][bug] Parsing of the octal IP representat
Re: [lwip-devel] [ip4addr_aton][bug] Parsing of the octal IP representation doesn't work fully properly
Thu, 5 Mar 2020 21:30:05 +0100
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0
Am 05.03.2020 um 12:19 schrieb Karol Domagalski:
> Dear LwIP developers
> For now function `ip4addr_aton` returns 1 for this IP address
> "192.168.095". This is a bug. 095 is not a valid octal number, and the
> function should return 0 instead.
Applied, thanks for the patch.
> In attachment there is a patch that fixes it. There is also
> "ip4addr_aton_test.c" which performs some tests for this function.
I've integrated that into test/unit/ip4/test_ip4.c