Skip to content

Commit e6e92e3

Browse files
committed
Address Copilot suggestions
1 parent d795be3 commit e6e92e3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/arm_tee_psa_ipc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,8 @@ static psa_status_t wolfboot_crypto_dispatch(const psa_invec *in_vec,
554554
psa_status_t status;
555555
if (out_vec == NULL || out_len < 2 ||
556556
out_vec[0].base == NULL ||
557-
out_vec[0].len < sizeof(uint32_t)) {
557+
out_vec[0].len < sizeof(uint32_t) ||
558+
out_vec[1].base == NULL) {
558559
return PSA_ERROR_INVALID_ARGUMENT;
559560
}
560561
slot = wolfboot_hash_find(iov->op_handle);

0 commit comments

Comments
 (0)