Re: [bug report] cros_ec: Add vstore support

2023-07-28 Thread Simon Glass
Hi Dan, On Tue, 25 Jul 2023 at 00:51, Dan Carpenter wrote: > > Hello Simon Glass, > > The patch 10f746591fba: "cros_ec: Add vstore support" from Jan 16, > 2021 (linux-next), leads to the following Smatch static checker > warning: > > drivers/misc/cros_ec_sandbox.c:543 process_cmd() error: buffer

[bug report] cros_ec: Add vstore support

2023-07-25 Thread Dan Carpenter
Hello Simon Glass, The patch 10f746591fba: "cros_ec: Add vstore support" from Jan 16, 2021 (linux-next), leads to the following Smatch static checker warning: drivers/misc/cros_ec_sandbox.c:543 process_cmd() error: buffer overflow 'ec->slot' 4 <= 31 drivers/misc/cros_ec_sandbox.c:556 process_cmd