mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
C#: Refer to the Node class via DataFlow instead of DataFlow2.
This commit is contained in:
@@ -10,8 +10,6 @@
|
||||
*/
|
||||
|
||||
import csharp
|
||||
import semmle.code.csharp.dataflow.DataFlow2
|
||||
import semmle.code.csharp.dataflow.TaintTracking2
|
||||
import HashWithoutSalt::PathGraph
|
||||
|
||||
/** The C# class `Windows.Security.Cryptography.Core.HashAlgorithmProvider`. */
|
||||
@@ -77,7 +75,7 @@ predicate isHashCall(MethodCall mc) {
|
||||
|
||||
/** Holds if there is another hashing method call. */
|
||||
predicate hasAnotherHashCall(MethodCall mc) {
|
||||
exists(MethodCall mc2, DataFlow2::Node src, DataFlow2::Node sink |
|
||||
exists(MethodCall mc2, DataFlow::Node src, DataFlow::Node sink |
|
||||
isHashCall(mc2) and
|
||||
mc2 != mc and
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user