mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
replace getMethod("new").getReturn() with getInstance()
This commit is contained in:
@@ -23,7 +23,7 @@ private class DigestCall extends Cryptography::CryptographicOperation::Range ins
|
||||
or
|
||||
this = digest(algo).getAMethodCall("file") // it's directly hashing the contents of a file, but that's close enough for us.
|
||||
or
|
||||
this = digest(algo).getMethod("new").getReturn().getAMethodCall(["digest", "update", "<<"])
|
||||
this = digest(algo).getInstance().getAMethodCall(["digest", "update", "<<"])
|
||||
}
|
||||
|
||||
override Cryptography::HashingAlgorithm getAlgorithm() { result = algo }
|
||||
|
||||
Reference in New Issue
Block a user