mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
JS/PolynomialReDoSQuery
javascript/ql/src/Performance/PolynomialReDoS.ql
This commit is contained in:
@@ -29,6 +29,8 @@ module PolynomialReDoSConfig implements DataFlow::ConfigSig {
|
|||||||
predicate observeDiffInformedIncrementalMode() { any() }
|
predicate observeDiffInformedIncrementalMode() { any() }
|
||||||
|
|
||||||
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
||||||
|
result = sink.(Sink).getLocation()
|
||||||
|
or
|
||||||
result = sink.(Sink).getHighlight().getLocation()
|
result = sink.(Sink).getHighlight().getLocation()
|
||||||
or
|
or
|
||||||
result = sink.(Sink).getRegExp().getLocation()
|
result = sink.(Sink).getRegExp().getLocation()
|
||||||
|
|||||||
Reference in New Issue
Block a user