Home
last modified time | relevance | path

Searched hist:bd81e5b95ec910e9e3fa9f1824f3981288af5d50 (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/tee/
H A Dtee_svc_cryp.cbd81e5b95ec910e9e3fa9f1824f3981288af5d50 Tue Feb 05 14:49:50 UTC 2019 Jerome Forissier <jerome.forissier@linaro.org> core: crypto: add overflow check when copying attributes

In copy_in_attrs(), attr_count * sizeof(struct utee_attribute) could
overflow if a very large attr_count is given. Use MUL_OVERFLOW() to
properly deal with this case.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reported-by: Bastien Simondi <bsimondi@netflix.com> [2.9]
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>