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 @@ -1684,5 +1684,9 @@ class RegExpCreationNode extends DataFlow::SourceNode {
1684
1684
}
1685
1685
1686
1686
/** Gets a data flow node referring to this regular expression. */
1687
- DataFlow:: SourceNode getAReference ( ) { result = this .getAReference ( DataFlow:: TypeTracker:: end ( ) ) }
1687
+ cached
1688
+ DataFlow:: SourceNode getAReference ( ) {
1689
+ Stages:: FlowSteps:: ref ( ) and
1690
+ result = this .getAReference ( DataFlow:: TypeTracker:: end ( ) )
1691
+ }
1688
1692
}
Original file line number Diff line number Diff line change @@ -238,6 +238,8 @@ module Stages {
238
238
1 = 1
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