Skip to content

Commit 211a1e1

Browse files
committed
Sync files
1 parent 60b0f25 commit 211a1e1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/TypeTracker.qll

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,17 @@ class TypeBackTracker extends TTypeBackTracker {
613613
* also flow to `sink`.
614614
*/
615615
TypeTracker getACompatibleTypeTracker() {
616-
exists(boolean hasCall | result = MkTypeTracker(hasCall, content) |
617-
hasCall = false or this.hasReturn() = false
616+
exists(boolean hasCall, OptionalTypeTrackerContent c |
617+
result = MkTypeTracker(hasCall, c) and
618+
(
619+
compatibleContents(c, content)
620+
or
621+
content = noContent() and c = content
622+
)
623+
|
624+
hasCall = false
625+
or
626+
this.hasReturn() = false
618627
)
619628
}
620629
}

0 commit comments

Comments
 (0)