Re: [PATCH] isdn: hisax: fix buffer overflow check

2017-08-24 Thread Arnd Bergmann
On Fri, Aug 25, 2017 at 12:58 AM, Arnd Bergmann wrote: > gcc-8 warns about a corner case that can overflow a memcpy buffer when a > length variable is negative. While the code checks for an overly large > value, it does not check for a negative length that would get turned > into a large positive

[PATCH] isdn: hisax: fix buffer overflow check

2017-08-24 Thread Arnd Bergmann
gcc-8 warns about a corner case that can overflow a memcpy buffer when a length variable is negative. While the code checks for an overly large value, it does not check for a negative length that would get turned into a large positive number: In function 'memcpy', inlined from 'skb_put_data' a