mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
formating and sanity check on pointer with test case
This commit is contained in:
@@ -6587,8 +6587,10 @@ Aes dec;
|
||||
#endif
|
||||
if (result != 0)
|
||||
return -4702;
|
||||
if (cipher != NULL) {
|
||||
if (XMEMCMP(cipher, resultC, cipherSz))
|
||||
return -4703;
|
||||
}
|
||||
if (XMEMCMP(tag, resultT, tagSz))
|
||||
return -4704;
|
||||
|
||||
@@ -6606,8 +6608,10 @@ Aes dec;
|
||||
#endif
|
||||
if (result != 0)
|
||||
return -4706;
|
||||
if (plain != NULL) {
|
||||
if (XMEMCMP(plain, resultP, plainSz))
|
||||
return -4707;
|
||||
}
|
||||
|
||||
wc_AesFree(&dec);
|
||||
#endif /* HAVE_AES_DECRYPT */
|
||||
|
Reference in New Issue
Block a user