incorrectStringBooleanError CPPCheck warnings fix on W27

This commit is contained in:
Vaibhav Shrivastava
2023-07-12 17:43:05 +05:30
parent cf387a48ec
commit ae751e13ca
7 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ void aes_128_ctr(const aes_128_t* k_iv, byte_array_t msg, size_t len_out, uint8_
int len_ev = 0;
rc = EVP_EncryptUpdate(ctx, out, &len_ev, msg.buf, msg.len);
DevAssert(!(len_ev > len_out) && "Buffer overflow");
AssertFatal(!(len_ev > len_out), "Buffer overflow");
// Finalise the encryption. Normally ciphertext bytes may be written at
// this stage, but this does not occur in GCM mode