]> git.dujemihanovic.xyz Git - u-boot.git/commit
cros_ec: Add run-time check for input buffer overflow
authorSimon Glass <sjg@chromium.org>
Sat, 16 Jan 2021 21:52:24 +0000 (14:52 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 30 Jan 2021 21:25:41 +0000 (14:25 -0700)
commit698e30f7a862ae6eb4754ef0d42b8dc8cf416edd
treec7cf5a61e33bc8bde451fbab7930a2c7a773201a
parent2525e53c2766a8731ebee9d13dd491a8ba0db2cb
cros_ec: Add run-time check for input buffer overflow

This should not happen in normal operation, but the EC might have a bug,
so add a run-time check just in case.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/misc/cros_ec.c