lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [ip4addr_aton][bug] Parsing of the octal IP representation


From: Karol Domagalski
Subject: [lwip-devel] [ip4addr_aton][bug] Parsing of the octal IP representation doesn't work fully properly
Date: Thu, 5 Mar 2020 12:19:31 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0

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.

In attachment there is a patch that fixes it. There is also "ip4addr_aton_test.c" which performs some tests for this function.

--
Kind regards,
Karol Domagalski
Software-Hardware Engineer

B.P.I. SoftCad
address@hidden
www.softcad.com.pl

Attachment: fixed-parsing-of-the-octal-IP-representation.patch
Description: Text document

Attachment: ip4addr_aton_test.c
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]