From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 15 May 2017 08:52:31 -0400 Subject: [U-Boot] [PATCHv6 09/28] net: core: Sanitize get/set operations for enetaddr In-Reply-To: <20170515080244.21345-10-oliver@schinagl.nl> References: <20170515080244.21345-1-oliver@schinagl.nl> <20170515080244.21345-10-oliver@schinagl.nl> Message-ID: <20170515125231.GC5701@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 Mon, May 15, 2017 at 10:02:25AM +0200, Olliver Schinagl wrote: > In the current net stack, we have a few functions to get and set > the "ethaddr" and "ethNaddr" environment variables, which use magic > values to get and set these environment variables. Remove the magicness > of the buffer by defining it proper and also check the input for its > length. > > Additionally use the define in fdt parser where the ethaddr variables > are also used. > > Signed-off-by: Olliver Schinagl Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: