arm-trusted-firmware/services/std_svc
Paul Beesley 00e51ca312 services/spm: Fix service UUID lookup
The spm_sp_get_by_uuid() function is used to look up the secure
partition that provides a given service.

Within this function, memcmp() is used to compare the service
UUIDs but it uses the size of the rdsvc->uuid pointer instead of
the size of its content (missing dereference). This means that only
a partial comparison is performed as UUIDs are 128 bits in length and
rdsvc->uuid is a uint32_t typed pointer.

Instead, use the size of the array pointed to by the svc_uuid parameter,
which will be the full 128 bits, for the comparison.

Change-Id: I258fb0cca3bf19f97b8f2a4c133981647cd050e4
Signed-off-by: Paul Beesley <paul.beesley@arm.com>
2019-04-09 11:10:09 +01:00
..
sdei Make setjmp.h prototypes comply with the C standard 2019-02-08 13:42:38 +00:00
spm services/spm: Fix service UUID lookup 2019-04-09 11:10:09 +01:00
spm_mm SPM: Rename folder of SPM based on MM 2019-01-22 09:21:07 +00:00
std_svc_setup.c SPM: Rename SPM_DEPRECATED flag to SPM_MM 2019-01-22 09:20:59 +00:00