Files
u-boot/drivers
Andrew Goodbody bae3a34cb9 cros_ec: sandbox: Use correct value for number of slots
In the definition of struct ec_state the number of slots that are
created is VSTORE_SLOT_COUNT (==4) but the value of req->slot is
checked against EC_VSTORE_SLOT_MAX (==32) so this can lead to memory
access beyond that allocated.
Instead change the size check to use VSTORE_SLOT_COUNT to ensure it
matches what has actually been allocated.

This issue found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
2025-07-14 15:16:30 -06:00
..
2025-07-10 08:41:03 -06:00
2025-04-11 12:16:44 -06:00
2025-07-14 15:35:24 +02:00
2025-05-03 16:55:32 -03:00
2025-06-24 07:54:51 -06:00
2025-06-02 17:26:16 -06:00
2025-04-11 12:16:44 -06:00
2025-04-11 12:16:44 -06:00
2025-06-25 13:42:04 -06:00
2025-05-29 18:35:49 -06:00
2025-04-11 12:16:44 -06:00
2025-04-11 12:16:44 -06:00