Re: [PATCH v3] usb: gadget: ether: Fix MAC address parsing

2015-05-18 Thread Stefan Agner
On 2015-05-18 11:24, Krzysztof Opasiak wrote: > Hello, > > On 05/14/2015 06:50 PM, Stefan Agner wrote: >> MAC addresses can be written without leading zeros. A popular >> example is libc's ether_ntoa_r function which creates such >> MAC addresses. >> >> Example: >> 00:14:3d:0f:ff:fe can be written

Re: [PATCH v3] usb: gadget: ether: Fix MAC address parsing

2015-05-18 Thread Krzysztof Opasiak
Hello, On 05/14/2015 06:50 PM, Stefan Agner wrote: MAC addresses can be written without leading zeros. A popular example is libc's ether_ntoa_r function which creates such MAC addresses. Example: 00:14:3d:0f:ff:fe can be written as 0:14:3d:f:ff:fe The function get_ether_addr potentially also p

[PATCH v3] usb: gadget: ether: Fix MAC address parsing

2015-05-14 Thread Stefan Agner
MAC addresses can be written without leading zeros. A popular example is libc's ether_ntoa_r function which creates such MAC addresses. Example: 00:14:3d:0f:ff:fe can be written as 0:14:3d:f:ff:fe The function get_ether_addr potentially also parsed past the end of the user provided string. Use th