Re: [U-Boot] [PATCH 04/14] net: core: Sanitize get/set operations for enetaddr

2016-12-02 Thread Olliver Schinagl
Hey Joe, On 30-11-16 20:20, Joe Hershberger wrote: On Fri, Nov 25, 2016 at 9:30 AM, 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. R

Re: [U-Boot] [PATCH 04/14] net: core: Sanitize get/set operations for enetaddr

2016-11-30 Thread Joe Hershberger
On Fri, Nov 25, 2016 at 9:30 AM, 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

[U-Boot] [PATCH 04/14] net: core: Sanitize get/set operations for enetaddr

2016-11-25 Thread Olliver Schinagl
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