mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
C++: Catch another encryption clue.
This commit is contained in:
@@ -171,6 +171,11 @@ class Encrypted extends Expr {
|
||||
this = fc.getAnArgument()
|
||||
)
|
||||
)
|
||||
or
|
||||
exists(Type t |
|
||||
this.getType().refersTo(t) and
|
||||
t.getName().toLowerCase().regexpMatch(".*(crypt|encode|decode|hash|securezero).*")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user