Skip to content

Commit 2c96d51

Browse files
authored
Remove warnings (#227)
1 parent 66c5301 commit 2c96d51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎linuxHelpers.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,8 +907,8 @@ void LinuxGetFileHash(uint32_t hashType, PTCHAR imagePath, char *stringBuffer, s
907907
return;
908908
}
909909

910-
EVP_DigestInit(sha1_ctx , EVP_sha1());
911-
EVP_DigestInit(md5_ctx , EVP_md5());
910+
EVP_DigestInit(sha1_ctx , EVP_sha1()); // CodeQL [SM02689] SHA1 use is intentional here, Sysmon needs it for historical reasons
911+
EVP_DigestInit(md5_ctx , EVP_md5()); // CodeQL [SM02689] MD5 use is intentional here, Sysmon needs it for historical reasons
912912
EVP_DigestInit(sha256_ctx, EVP_sha256());
913913

914914
hashFlag[ALGO_SHA1] = (((hashType>>(ALGO_SHA1-1))&1) && (hashType & ALGO_MULTIPLE)) || (hashType == ALGO_SHA1);

0 commit comments

Comments
 (0)