Skip to content

Commit d065479

Browse files
committed
Java: use approximate related sink locations in polynomial redos
1 parent eea79e8 commit d065479

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

java/ql/lib/semmle/code/java/security/regexp/PolynomialReDoSQuery.qll

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@ module PolynomialRedosConfig implements DataFlow::ConfigSig {
5555
regexp.getRootTerm() = sink.(PolynomialRedosSink).getRegExp()
5656
|
5757
result = sink.getLocation()
58-
or
58+
)
59+
}
60+
61+
Location getASelectedSinkLocationApprox(DataFlow::Node sink) {
62+
exists(SuperlinearBackTracking::PolynomialBackTrackingTerm regexp |
63+
regexp.getRootTerm() = sink.(PolynomialRedosSink).getRegExp()
64+
|
5965
result = regexp.getLocation()
6066
)
6167
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy