Skip to content

Commit 9e990e7

Browse files
committed
C#: Refer to the Node class via DataFlow instead of DataFlow2.
1 parent bd01336 commit 9e990e7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

csharp/ql/src/experimental/Security Features/CWE-759/HashWithoutSalt.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
*/
1111

1212
import csharp
13-
import semmle.code.csharp.dataflow.DataFlow2
14-
import semmle.code.csharp.dataflow.TaintTracking2
1513
import HashWithoutSalt::PathGraph
1614

1715
/** The C# class `Windows.Security.Cryptography.Core.HashAlgorithmProvider`. */
@@ -77,7 +75,7 @@ predicate isHashCall(MethodCall mc) {
7775

7876
/** Holds if there is another hashing method call. */
7977
predicate hasAnotherHashCall(MethodCall mc) {
80-
exists(MethodCall mc2, DataFlow2::Node src, DataFlow2::Node sink |
78+
exists(MethodCall mc2, DataFlow::Node src, DataFlow::Node sink |
8179
isHashCall(mc2) and
8280
mc2 != mc and
8381
(

0 commit comments

Comments
 (0)