Searched hist:b031393cd7816a108566f7e254956e0c510b6303 (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/kernel/ |
| H A D | tee_ta_manager.c | b031393cd7816a108566f7e254956e0c510b6303 Tue Apr 11 04:48:17 UTC 2023 Weizhao Jiang <weizhaoj@amazon.com> 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>
|