From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Wed, 04 Jan 2017 11:04:42 +0100 Subject: [U-Boot] [PATCH 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: <20170104100442.76F0910113B@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Chris, In message <20170104003626.4211-1-judge.packham@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.