cryptoauthlib icon indicating copy to clipboard operation
cryptoauthlib copied to clipboard

Missing return in atcab_aes_ccm_aad_finish

Open peschuster opened this issue 1 year ago • 0 comments

In https://github.com/MicrochipTech/cryptoauthlib/blob/86b3046d2e0b74af20cf6694ada5cc21af18c0d1/lib/crypto/atca_crypto_hw_aes_ccm.c#L370-L376 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.

peschuster avatar May 24 '23 12:05 peschuster