We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getMethod("new").getReturn()
getInstance()
1 parent 5f826d0 commit 191efdfCopy full SHA for 191efdf
ruby/ql/lib/codeql/ruby/frameworks/core/Digest.qll
@@ -23,7 +23,7 @@ private class DigestCall extends Cryptography::CryptographicOperation::Range ins
23
or
24
this = digest(algo).getAMethodCall("file") // it's directly hashing the contents of a file, but that's close enough for us.
25
26
- this = digest(algo).getMethod("new").getReturn().getAMethodCall(["digest", "update", "<<"])
+ this = digest(algo).getInstance().getAMethodCall(["digest", "update", "<<"])
27
}
28
29
override Cryptography::HashingAlgorithm getAlgorithm() { result = algo }
0 commit comments