aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strcpy.c
diff options
context:
space:
mode:
authorTzung-Bi Shih <[email protected]>2022-05-13 12:41:39 +0800
committerTzung-Bi Shih <[email protected]>2022-05-16 10:01:51 +0800
commitc2dcb1b06053a1ccfb73fe84e7b54b92383401cc (patch)
tree253e28cb483fe1b1977ddc27c5381a1728de3119 /lib/test_fortify/write_overflow-strcpy.c
parent71d3ae7fb6404c87b498f8b7f86b8271dd74989f (diff)
platform/chrome: cros_ec_proto: drop BUG_ON() in cros_ec_prepare_tx()
It is overkill to crash the kernel if the given message is oversize. Drop the BUG_ON() and return -EINVAL instead. Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions