File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
javascript/ql/test/library-tests/TaintTracking Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -34,23 +34,26 @@ deprecated class LegacyConfig extends TaintTracking::Configuration {
34
34
}
35
35
36
36
override predicate isSanitizerGuard ( TaintTracking:: SanitizerGuardNode node ) {
37
- node instanceof BasicSanitizerGuard or
37
+ node instanceof BasicSanitizerGuardLegacy or
38
38
node instanceof TaintTracking:: AdHocWhitelistCheckSanitizer
39
39
}
40
40
}
41
41
42
42
deprecated import testUtilities.LegacyDataFlowDiff:: DataFlowDiff< TestFlow , LegacyConfig >
43
43
44
- class BasicSanitizerGuard extends TaintTracking :: SanitizerGuardNode , DataFlow:: CallNode {
44
+ class BasicSanitizerGuard extends DataFlow:: CallNode {
45
45
BasicSanitizerGuard ( ) { this = getACall ( "isSafe" ) }
46
46
47
- override predicate sanitizes ( boolean outcome , Expr e ) { this .blocksExpr ( outcome , e ) }
48
-
49
47
predicate blocksExpr ( boolean outcome , Expr e ) {
50
48
outcome = true and e = this .getArgument ( 0 ) .asExpr ( )
51
49
}
52
50
}
53
51
52
+ deprecated class BasicSanitizerGuardLegacy extends TaintTracking:: SanitizerGuardNode instanceof BasicSanitizerGuard
53
+ {
54
+ override predicate sanitizes ( boolean outcome , Expr e ) { super .blocksExpr ( outcome , e ) }
55
+ }
56
+
54
57
query predicate flow = TestFlow:: flow / 2 ;
55
58
56
59
deprecated class Consistency extends ConsistencyConfiguration {
You can’t perform that action at this time.
0 commit comments