File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
javascript/ql/lib/semmle/javascript Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1650,5 +1650,9 @@ class RegExpCreationNode extends DataFlow::SourceNode {
1650
1650
}
1651
1651
1652
1652
/** Gets a data flow node referring to this regular expression. */
1653
- DataFlow:: SourceNode getAReference ( ) { result = this .getAReference ( DataFlow:: TypeTracker:: end ( ) ) }
1653
+ cached
1654
+ DataFlow:: SourceNode getAReference ( ) {
1655
+ Stages:: FlowSteps:: ref ( ) and
1656
+ result = this .getAReference ( DataFlow:: TypeTracker:: end ( ) )
1657
+ }
1654
1658
}
Original file line number Diff line number Diff line change @@ -238,6 +238,8 @@ module Stages {
238
238
AccessPath:: DominatingPaths:: hasDominatingWrite ( _)
239
239
or
240
240
DataFlow:: SharedFlowStep:: step ( _, _)
241
+ or
242
+ exists ( any ( DataFlow:: RegExpCreationNode e ) .getAReference ( ) )
241
243
}
242
244
}
243
245
You can’t perform that action at this time.
0 commit comments