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