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 {
16841684 }
16851685
16861686 /** 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+ }
16881692}
Original file line number Diff line number Diff line change @@ -238,6 +238,8 @@ module Stages {
238238 1 = 1
239239 or
240240 DataFlow:: SharedFlowStep:: step ( _, _)
241+ or
242+ exists ( any ( DataFlow:: RegExpCreationNode e ) .getAReference ( ) )
241243 }
242244 }
243245
You can’t perform that action at this time.
0 commit comments