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 {
3434 }
3535
3636 override predicate isSanitizerGuard ( TaintTracking:: SanitizerGuardNode node ) {
37- node instanceof BasicSanitizerGuard or
37+ node instanceof BasicSanitizerGuardLegacy or
3838 node instanceof TaintTracking:: AdHocWhitelistCheckSanitizer
3939 }
4040}
4141
4242deprecated import testUtilities.LegacyDataFlowDiff:: DataFlowDiff< TestFlow , LegacyConfig >
4343
44- class BasicSanitizerGuard extends TaintTracking :: SanitizerGuardNode , DataFlow:: CallNode {
44+ class BasicSanitizerGuard extends DataFlow:: CallNode {
4545 BasicSanitizerGuard ( ) { this = getACall ( "isSafe" ) }
4646
47- override predicate sanitizes ( boolean outcome , Expr e ) { this .blocksExpr ( outcome , e ) }
48-
4947 predicate blocksExpr ( boolean outcome , Expr e ) {
5048 outcome = true and e = this .getArgument ( 0 ) .asExpr ( )
5149 }
5250}
5351
52+ deprecated class BasicSanitizerGuardLegacy extends TaintTracking:: SanitizerGuardNode instanceof BasicSanitizerGuard
53+ {
54+ override predicate sanitizes ( boolean outcome , Expr e ) { super .blocksExpr ( outcome , e ) }
55+ }
56+
5457query predicate flow = TestFlow:: flow / 2 ;
5558
5659deprecated class Consistency extends ConsistencyConfiguration {
You can’t perform that action at this time.
0 commit comments