mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
use pragma to improve 2 join-orders in TaintTracking
This commit is contained in:
@@ -738,7 +738,10 @@ module TaintTracking {
|
||||
pragma[nomagic]
|
||||
private DataFlow::MethodCallNode execMethodCall() {
|
||||
result.getMethodName() = "exec" and
|
||||
result.getReceiver().analyze().getAType() = TTRegExp()
|
||||
exists(DataFlow::AnalyzedNode analyzed |
|
||||
pragma[only_bind_into](analyzed) = result.getReceiver().analyze() and
|
||||
analyzed.getAType() = TTRegExp()
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -759,7 +762,10 @@ module TaintTracking {
|
||||
pragma[nomagic]
|
||||
private DataFlow::MethodCallNode matchMethodCall() {
|
||||
result.getMethodName() = "match" and
|
||||
result.getArgument(0).analyze().getAType() = TTRegExp()
|
||||
exists(DataFlow::AnalyzedNode analyzed |
|
||||
pragma[only_bind_into](analyzed) = result.getArgument(0).analyze() and
|
||||
analyzed.getAType() = TTRegExp()
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user