MicrochipTech/cryptoauthlib

Missing return in atcab_aes_ccm_aad_finish

peschuster opened this issue · 0 comments

In

if (ctx == NULL)
{
status = ATCA_TRACE(ATCA_BAD_PARAM, "Null pointer");
}
// Pad and process any incomplete aad data blocks
if (ctx->partial_aad_size > 0)
pointer 'ctx' is checked for NULL at line 370 but will be dereferenced at line 376.

I think there is a return statement missing or the condition in line 376 should be extended to cover a null pointer.