Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cdf838 commit 9e75f53Copy full SHA for 9e75f53
1 file changed
cpp/ql/src/semmle/code/cpp/security/Encryption.qll
@@ -68,7 +68,7 @@ predicate isInsecureEncryption(string name) {
68
*/
69
bindingset[name]
70
predicate isEncryptionAdditionalEvidence(string name) {
71
- name.toUpperCase().regexpMatch(".*(CRYPT|CODE|CODING|CBC|KEY).*")
+ name.toUpperCase().matches("%" + ["CRYPT", "CODE", "CODING", "CBC", "KEY"] + "%")
72
}
73
74
/**
0 commit comments