Home
last modified time | relevance | path

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

/optee_os/core/include/
H A Dsigned_hdr.h1b02ce1d6e582888bad51eeadfb3336887c7d501 Mon Jun 21 11:38:50 UTC 2021 Jens Wiklander <jens.wiklander@linaro.org> core: add overflow check in SHDR_ENC_GET_SIZE()

Prior to this patch could the additions in the macro SHDR_ENC_GET_SIZE()
cause an integer overflow. So fix this by using the ADD_OVERFLOW() macro
and a helper function. In case of overflow return 0 which never can be a
correct size.

Reviewed-by: Jerome Forissier <jerome@forissier.org>
Reviewed-by: Ruchika Gupta <ruchika.gupta@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Reported-by: Patrik Lantz <Patrik.Lantz@axis.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>