зеркало из https://github.com/github/codeql.git
Ruby: Cache some barrier guard predicates
This commit is contained in:
Родитель
5deb16e58c
Коммит
376d4e03a1
|
@ -9,6 +9,7 @@ private import codeql.ruby.ast.internal.Constant
|
|||
private import codeql.ruby.InclusionTests
|
||||
private import codeql.ruby.ast.internal.Literal
|
||||
|
||||
cached
|
||||
private predicate stringConstCompare(CfgNodes::AstCfgNode guard, CfgNode testedNode, boolean branch) {
|
||||
exists(CfgNodes::ExprNodes::ComparisonOperationCfgNode c |
|
||||
c = guard and
|
||||
|
@ -102,6 +103,7 @@ deprecated class StringConstCompare extends DataFlow::BarrierGuard,
|
|||
}
|
||||
}
|
||||
|
||||
cached
|
||||
private predicate stringConstArrayInclusionCall(
|
||||
CfgNodes::AstCfgNode guard, CfgNode testedNode, boolean branch
|
||||
) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче