Skip to content

Commit 4dc57d6

Browse files
committed
ci: update sus stub
1 parent 03d44fd commit 4dc57d6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/codeql/custom-queries-javascript/ShellSanitizer.ql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ module UtilSanitizerConfig implements DataFlow::ConfigSig {
99
predicate isBarrier(DataFlow::Node nd) {
1010
nd.(DataFlow::CallNode).getCalleeName() = "sanitizeShellArg"
1111
}
12-
/** Minimal stubs required by ConfigSig (false should be no extra action). */
13-
predicate isSource(DataFlow::Node n) { false }
14-
predicate isSink(DataFlow::Node n) { false }
12+
/** Minimal stubs required by ConfigSig */
13+
predicate isSource(DataFlow::Node source) { source instanceof Source }
14+
15+
predicate isSink(DataFlow::Node sink) { sink instanceof Sink }
1516
}
1617

1718
module UtilSanitizerConfigFlow = TaintTracking::Global<UtilSanitizerConfig>;

0 commit comments

Comments
 (0)