Home
last modified time | relevance | path

Searched hist:"7539 e8c32413101d24ddc010cccb0233bbe13c81" (Results 1 – 1 of 1) sorted by relevance

/optee_os/lib/libutils/isoc/
H A Dbget.c7539e8c32413101d24ddc010cccb0233bbe13c81 Thu Jan 31 14:02:08 UTC 2019 PeiKan Tsai <mark1990301@gmail.com> bget: Check for size overflow

Check size overflow to avoid size <= 0 which may be caused by
calculation "size += sizeof(struct bhead)" and
"size = (size + (SizeQuant - 1)) & (~(SizeQuant - 1))".

Signed-off-by: Peikan Tsai <mark1990301@gmail.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>