File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
docs/codeql/codeql-language-guides
javascript/ql/test/tutorials/Analyzing data flow in JavaScript/Global data flow Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -416,11 +416,11 @@ additional taint step from the first argument of ``resolveSymlinks`` to its resu
416
416
417
417
// ...
418
418
419
- predicate isAdditionalFlowStep (DataFlow :: Node pred , DataFlow :: Node succ ) {
419
+ predicate isAdditionalFlowStep (DataFlow :: Node node1 , DataFlow :: Node node2 ) {
420
420
exists (DataFlow:: CallNode c |
421
421
c = DataFlow:: moduleImport (" resolve-symlinks" ).getACall () and
422
- pred = c .getArgument (0 ) and
423
- succ = c
422
+ node1 = c .getArgument (0 ) and
423
+ node2 = c
424
424
)
425
425
}
426
426
}
@@ -431,11 +431,11 @@ to wrap it in a new subclass of ``TaintTracking::SharedTaintStep`` like this:
431
431
.. code - block:: ql
432
432
433
433
class StepThroughResolveSymlinks extends TaintTracking :: SharedTaintStep {
434
- override predicate step (DataFlow :: Node pred , DataFlow :: Node succ ) {
434
+ override predicate step (DataFlow :: Node node1 , DataFlow :: Node node2 ) {
435
435
exists (DataFlow:: CallNode c |
436
436
c = DataFlow:: moduleImport (" resolve-symlinks" ).getACall () and
437
- pred = c .getArgument (0 ) and
438
- succ = c
437
+ node1 = c .getArgument (0 ) and
438
+ node2 = c
439
439
)
440
440
}
441
441
}
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ module CommandLineFileNameConfig implements DataFlow::ConfigSig {
9
9
DataFlow:: moduleMember ( "fs" , "readFile" ) .getACall ( ) .getArgument ( 0 ) = sink
10
10
}
11
11
12
- predicate isAdditionalFlowStep ( DataFlow:: Node pred , DataFlow:: Node succ ) {
12
+ predicate isAdditionalFlowStep ( DataFlow:: Node node1 , DataFlow:: Node node2 ) {
13
13
exists ( DataFlow:: CallNode c |
14
14
c = DataFlow:: moduleImport ( "resolve-symlinks" ) .getACall ( ) and
15
- pred = c .getArgument ( 0 ) and
16
- succ = c
15
+ node1 = c .getArgument ( 0 ) and
16
+ node2 = c
17
17
)
18
18
}
19
19
}
You can’t perform that action at this time.
0 commit comments