mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
fix that the TypeTracker was unrestricted for the base-case of nonFirstLocationType
This commit is contained in:
committed by
Tony Torralba
parent
e02b67af63
commit
5c388c554c
@@ -465,7 +465,11 @@ module DOM {
|
||||
*/
|
||||
private DataFlow::SourceNode nonFirstLocationType(DataFlow::TypeTracker t) {
|
||||
// One step inlined in the beginning.
|
||||
result = any(DataFlow::Node n | n.hasUnderlyingType("Location")).getALocalSource().track(_, t)
|
||||
exists(DataFlow::TypeTracker t2 |
|
||||
result =
|
||||
any(DataFlow::Node n | n.hasUnderlyingType("Location")).getALocalSource().track(t2, t) and
|
||||
t2.start()
|
||||
)
|
||||
or
|
||||
exists(DataFlow::TypeTracker t2 | result = nonFirstLocationType(t2).track(t2, t))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user