commit | b031393cd7816a108566f7e254956e0c510b6303 | [log] [tgz] |
---|---|---|
author | Weizhao Jiang <weizhaoj@amazon.com> | Mon Apr 10 21:48:17 2023 -0700 |
committer | Jérôme Forissier <jerome@forissier.org> | Tue Apr 11 21:17:10 2023 +0200 |
tree | 3470493605888cae1e45ee9fd846ea0b2cf2ffaf | |
parent | 32b94ed4b63fdac094b1a6b7719f7cb8979695f6 [diff] |
core: tee_ta_instance_stats(): correct the allocation size of dump_ctx Problem: Wrongly use sizeof(struct tee_ta_dump_stats) to calculate out the allocation size of dump_ctx. This error causes buffer overflow when iterating dump_ctx. Solution: Correct the allocation size to sizeof(struct tee_ta_dump_ctx) * ta_count. Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Weizhao Jiang <weizhaoj@amazon.com> Signed-off-by: Weizhao Jiang <weizhaoj@amazon.com>
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