Open JustusAdam opened 4 days ago
👋 @JustusAdam thanks for reaching out to us for this!
I think that may indeed be a limitation, but I will circle back to you with a confirmation tomorrow. If it is, I will make sure we have this in our backlog of things to improve!
I've created an internal issue to track this.
Calling a virtual function on a field defeats the dispatch analysis. In the following example only the first tall to
target()
is detected as receiving sensitive data fromsource()
. The second one is missed and the only difference is that in the first case the dispatched pointer is a local variable, and in the second it is a member.This is the query I ran
This is the output. I would have expected to also see a flow from line 19 to 34.
CodeQL version: 2.19.3