aboutsummaryrefslogtreecommitdiff
path: root/generic/tee_supp_com.c
diff options
context:
space:
mode:
authorJerome Forissier <jerome.forissier@linaro.org>2015-01-27 18:52:55 +0100
committerJerome Forissier <jerome.forissier@linaro.org>2015-01-28 11:06:30 +0100
commit9f504dbd39efb84805d1abe81d3844cd46954f67 (patch)
treee2be140170f188b8e2d0f5479de4d5a4e7ed0f1a /generic/tee_supp_com.c
parent6c1b321c2eecf324d514a8d51b4a22e3ef5e284d (diff)
tee_shm_allocate(): use size_t for size and check for overflow
Fixes failure of xtest 7002 on Foundation_v8 (PLATFORM=vexpress-fvp). xtest 7002 calls TEEC_AllocateSharedMemory() with a requested size of 0xFFFFFFFE and expects an out-of-memory error. Prior to this commit, the size after page_size alignment would wrap to 0 and no error would be returned. Tested on PLATFORM vexpress-fvp and vexpress-qemu_virt. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform)
Diffstat (limited to 'generic/tee_supp_com.c')
0 files changed, 0 insertions, 0 deletions