commit | de41767488a57efd2f3bcff75119755cac3fd117 | [log] [tgz] |
---|---|---|
author | leisen <leisen1@huawei.com> | Sat Apr 01 16:11:07 2023 +0800 |
committer | Jerome Forissier <jerome.forissier@linaro.org> | Wed Apr 05 08:19:11 2023 +0200 |
tree | 93c7bbbc279b20b0758a2c0f7ba90c039ec260c3 | |
parent | 9eabc2b441c273bb166a5fae01d91eb946133a50 [diff] |
core: mm: Fix idx truncation bug When the idx of TA memory mapping is assigned, it is saved in the l1_idx_t, which is the uint8_t or uint16_t type. But when it is parsed, it is saved in uint8_t which can cause truncation. To solve this problem, the idx should be saved in the l1_idx_t type when parsing the idx. Signed-off-by: leisen <leisen1@huawei.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> [jf: edit commit description] Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers