Open JustusAdam opened 5 days ago
👋 @JustusAdam thanks for reaching out to us for this!
As with https://github.com/github/codeql/issues/18102, I think that may indeed be a limitation, but I will try to confirm 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.
Assigning to a function pointer in a function appears to defeat the points-to analysis used to resolve the dispatch of function pointers.
In the following example I would have expected to see two flows from
source()
totarget()
but only the second one from the direct assignment of the function pointer is reported.This is the complete query
This is the output. I would have expected to also see a flow to line 28.
CodeQL version: 2.19.3