Re: Smatch error report in drivers/misc/imx_ele/fuse.c

2025-08-05 Thread Andrew Goodbody
On 05/08/2025 04:44, Peng Fan wrote: On Tue, Jul 29, 2025 at 12:18:39PM +0100, Andrew Goodbody wrote: Smatch reports the following error. drivers/misc/imx_ele/fuse.c:218 fuse_sense() error: buffer overflow 'data' 4 <= 7 Looking at the code I can see that at line 198, word is checked to be less

Re: Smatch error report in drivers/misc/imx_ele/fuse.c

2025-08-04 Thread Peng Fan
On Tue, Jul 29, 2025 at 12:18:39PM +0100, Andrew Goodbody wrote: >Smatch reports the following error. > >drivers/misc/imx_ele/fuse.c:218 fuse_sense() error: buffer overflow 'data' 4 ><= 7 > >Looking at the code I can see that at line 198, word is checked to be less >than 8. Later at line 203 data i

Smatch error report in drivers/misc/imx_ele/fuse.c

2025-07-29 Thread Andrew Goodbody
Smatch reports the following error. drivers/misc/imx_ele/fuse.c:218 fuse_sense() error: buffer overflow 'data' 4 <= 7 Looking at the code I can see that at line 198, word is checked to be less than 8. Later at line 203 data is declared as a 4 element array. Then at line 218 word is used to i