commit | d69daa9407d2e2f68c9e7fafdd774e7670226018 | [log] [tgz] |
---|---|---|
author | Julien Masson <jmasson@baylibre.com> | Thu Feb 29 18:07:42 2024 +0100 |
committer | Joakim Bech <joakim.bech@linaro.org> | Tue Mar 05 10:28:43 2024 +0100 |
tree | b761f83a957ec48753e2176fcf633e75c3d66e7d | |
parent | a7169b05c236ff877547aeb51f50d6a3b7741b63 [diff] |
keymaster: don't shrink input size on update We should not shrink the input size when: Request size + Input size > OPTEE_KEYMASTER_SEND_BUF_SIZE Otherwise we may return incorrect/unexpected data when we perform an UpdateOperation. Instead we should set the response error to KM_ERROR_INVALID_INPUT_LENGTH and return. Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Julien Masson <jmasson@baylibre.com>