mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
C#/Java: Go back to access path limit 2
This commit is contained in:
@@ -260,6 +260,8 @@ module SummaryModelGeneratorInput implements SummaryModelGeneratorInputSig {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int contentAccessPathLimitInternal() { result = 2 }
|
||||||
|
|
||||||
bindingset[d]
|
bindingset[d]
|
||||||
private string getFullyQualifiedName(Declaration d) {
|
private string getFullyQualifiedName(Declaration d) {
|
||||||
exists(string qualifier, string name |
|
exists(string qualifier, string name |
|
||||||
|
|||||||
@@ -218,6 +218,8 @@ module SummaryModelGeneratorInput implements SummaryModelGeneratorInputSig {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int contentAccessPathLimitInternal() { result = 2 }
|
||||||
|
|
||||||
predicate isField(DataFlow::ContentSet c) {
|
predicate isField(DataFlow::ContentSet c) {
|
||||||
c instanceof DataFlowUtil::FieldContent or
|
c instanceof DataFlowUtil::FieldContent or
|
||||||
c instanceof DataFlowUtil::SyntheticFieldContent
|
c instanceof DataFlowUtil::SyntheticFieldContent
|
||||||
|
|||||||
@@ -277,6 +277,16 @@ module MakeModelGeneratorFactory<
|
|||||||
*/
|
*/
|
||||||
predicate isAdditionalContentFlowStep(Lang::Node nodeFrom, Lang::Node nodeTo);
|
predicate isAdditionalContentFlowStep(Lang::Node nodeFrom, Lang::Node nodeTo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the access path limit for content flow analysis.
|
||||||
|
*/
|
||||||
|
default int contentAccessPathLimit() { result = 2 }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the internal access path limit for content flow analysis.
|
||||||
|
*/
|
||||||
|
default int contentAccessPathLimitInternal() { result = Lang::accessPathLimit() }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds if the content set `c` is field like.
|
* Holds if the content set `c` is field like.
|
||||||
*/
|
*/
|
||||||
@@ -650,7 +660,10 @@ module MakeModelGeneratorFactory<
|
|||||||
exists(Type t | t = n.(NodeExtended).getType() and not isRelevantType(t))
|
exists(Type t | t = n.(NodeExtended).getType() and not isRelevantType(t))
|
||||||
}
|
}
|
||||||
|
|
||||||
int accessPathLimit() { result = 2 }
|
predicate accessPathLimit = SummaryModelGeneratorInput::contentAccessPathLimit/0;
|
||||||
|
|
||||||
|
predicate accessPathLimitInternal =
|
||||||
|
SummaryModelGeneratorInput::contentAccessPathLimitInternal/0;
|
||||||
|
|
||||||
predicate isRelevantContent(DataFlow::ContentSet s) { isRelevantContent0(s) }
|
predicate isRelevantContent(DataFlow::ContentSet s) { isRelevantContent0(s) }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user