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

2017-01-03 Thread Chris Packham
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

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

2017-01-04 Thread Wolfgang Denk
Dear Chris, In message <20170104003626.4211-1-judge.pack...@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 > co

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

2017-01-04 Thread Chris Packham
Hi Wolfgang, On Wed, Jan 4, 2017 at 11:04 PM, Wolfgang Denk wrote: > Dear Chris, > > In message <20170104003626.4211-1-judge.pack...@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 outrig