Re: [PATCH] power: supply: lp8788: prevent out of bounds array access

2017-04-11 Thread Sebastian Reichel
Hi, On Sat, Mar 25, 2017 at 06:00:49PM +0200, Giedrius Statkevičius wrote: > val might become 7 in which case stime[7] (array of length 7) would be > accessed during the scnprintf call later and that will cause issues. > Obviously, string concatenation is not intended here so just a comma needs >

Re: [PATCH] power: supply: lp8788: prevent out of bounds array access

2017-04-08 Thread Giedrius Statkevičius
Ping. On Tue, Mar 28, 2017 at 2:23 AM, Kim, Milo wrote: > On 3/26/2017 1:00 AM, Giedrius Statkevičius wrote: >> >> val might become 7 in which case stime[7] (array of length 7) would be >> accessed during the scnprintf call later and that will cause issues. >> Obviously, string concatenation is n

Re: [PATCH] power: supply: lp8788: prevent out of bounds array access

2017-03-27 Thread Kim, Milo
On 3/26/2017 1:00 AM, Giedrius Statkevičius wrote: val might become 7 in which case stime[7] (array of length 7) would be accessed during the scnprintf call later and that will cause issues. Obviously, string concatenation is not intended here so just a comma needs to be added to fix the issue.

[PATCH] power: supply: lp8788: prevent out of bounds array access

2017-03-25 Thread Giedrius Statkevičius
val might become 7 in which case stime[7] (array of length 7) would be accessed during the scnprintf call later and that will cause issues. Obviously, string concatenation is not intended here so just a comma needs to be added to fix the issue. Signed-off-by: Giedrius Statkevičius --- drivers/po