[U-Boot] [PATCH v2 1/2] lib: net_utils: make string_to_ip stricter

Wolfgang Denk wd at denx.de
Wed Jan 4 11:04:42 CET 2017


Dear Chris,

In message <20170104003626.4211-1-judge.packham at gmail.com> you wrote:
> 
> With the input "1234192.168.1.1" the old behaviour would truncate the
> address to 192.168.1.1. New behaviour rejects the string outright and
> returns 0.0.0.0, which for the purposes of IP addresses can be
> considered an error.

Does code that calls string_to_ip() check for such an error
condition?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Listen to the local yokel yodel.


More information about the U-Boot mailing list