[U-Boot] [U-Boot, v2, 1/2] lib: net_utils: make string_to_ip stricter
Tom Rini
trini at konsulko.com
Sun Jan 15 19:30:23 CET 2017
On Wed, Jan 04, 2017 at 01:36:25PM +1300, Chris Packham wrote:
> Previously values greater than 255 were implicitly truncated. Add some
> stricter checking to reject addresses with components >255.
>
> 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.
>
> Signed-off-by: Chris Packham <judge.packham at gmail.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170115/7a1ae904/attachment.sig>
More information about the U-Boot
mailing list