CBI: Validate data size of input from host
CBI: Validate data size of input from host

Currently, the size of input data is not verified. This can cause
read overflow in cbi_set_data.

This patch makes the host command handler validate the input data
size.

BUG=chromium:1114458
BRANCH=none
TEST=cros_fuzz --board=amd64-generic reproduce \
    --fuzzer ec_host_command_fuzzer \
    --testcase ...ec_host_command_fuzzer-5111452783935488 \
    --package chromeos-ec --build-type asan

Signed-off-by: Daisuke Nojiri <fd5f93af191bf7e8f73ea71cc3c0f66b41b1dd49@chromium.org>
Change-Id: Ia3e03cd6bb857e0fa594de9d8cc66d8788d6dcd8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2378203
Reviewed-by: Jett Rink <9d4aef0593e6843318d99df31597fb6153b89787@chromium.org>

coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec