Searched hist:"3 dd5cda28504178b68f7e90ff55d26d0c73f37bc" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/pta/ |
| H A D | system.c | 3dd5cda28504178b68f7e90ff55d26d0c73f37bc Fri Feb 19 14:11:36 UTC 2021 Jens Wiklander <jens.wiklander@linaro.org> core: add NULL check in system_dlsym()
system_dlsym() takes a uuid in one of the memref parameters. Prior to this patch that memref wasn't checked correctly in all cases. system_dlsym() passes the uuid to ldelf_dlsym() which uses this uuid so the pointer must be valid and of the expected size. Fix this by checking that the pointer is non-NULL and of the correct size.
This fixes coverity scan: CID 1501812 (#1 of 1): Dereference after null check (FORWARD_NULL)
Fixes: ebef121c1f5c ("core, ldelf: add support for runtime loading of shared libraries") Reviewed-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
|