Re: [patch] [media] v4l: xilinx: harmless buffer overflow

2015-04-21 Thread Laurent Pinchart
Hi Dan, Thank you for the patch. On Tuesday 21 April 2015 12:31:10 Dan Carpenter wrote: > My static checker warns that the name of the port can be 15 characters > when you consider the NUL terminator and that's one more than the 14 > characters in name[]. Maybe it's an off-by-one? > > It's unlik

[patch] [media] v4l: xilinx: harmless buffer overflow

2015-04-21 Thread Dan Carpenter
My static checker warns that the name of the port can be 15 characters when you consider the NUL terminator and that's one more than the 14 characters in name[]. Maybe it's an off-by-one? It's unlikely that we hit the limit and even if we do the overflow will only affect one of the two bytes of p