Data flow: Use accessPathLimit() in partial flow as well.

cf. https://github.com/github/codeql/pull/3494
This commit is contained in:
Max Schaefer
2020-06-29 11:02:35 +01:00
parent 5275168253
commit f7ed65692f

View File

@@ -2564,7 +2564,7 @@ private module FlowExploration {
private newtype TPartialAccessPath =
TPartialNil(DataFlowType t) or
TPartialCons(TypedContent tc, int len) { len in [1 .. 5] }
TPartialCons(TypedContent tc, int len) { len in [1 .. accessPathLimit()] }
/**
* Conceptually a list of `TypedContent`s followed by a `Type`, but only the first