From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sun, 15 Jan 2017 13:30:23 -0500 Subject: [U-Boot] [U-Boot, v2, 1/2] lib: net_utils: make string_to_ip stricter In-Reply-To: <20170104003626.4211-1-judge.packham@gmail.com> References: <20170104003626.4211-1-judge.packham@gmail.com> Message-ID: <20170115183023.GX19689@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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: