Core: Sanitize iovec parameters in TF-M Core
Do a sanity check on the iovec parameters of secure function calls in
TF-M core.
Change-Id: I57f411c6fbc116df3c09869d8540a0c27cce6918
Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
diff --git a/secure_fw/spm/spm_api.c b/secure_fw/spm/spm_api.c
index 2aeb903..d95bee4 100644
--- a/secure_fw/spm/spm_api.c
+++ b/secure_fw/spm/spm_api.c
@@ -151,6 +151,7 @@
desc.args = args;
desc.ns_caller = 0;
+ desc.iovec_api = TFM_SFN_API_IOVEC;
desc.sfn = (sfn_t)part->static_data.partition_init;
desc.sp_id = part->static_data.partition_id;
res = tfm_core_sfn_request(&desc);