Skip to content

Fix Type-based Call-Graphs with Multiple Inheritance #776

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 77 commits into
base: development
Choose a base branch
from

Conversation

fabianbs96
Copy link
Member

@fabianbs96 fabianbs96 commented Jun 7, 2025

The RTAResolver and CHAResolver give wrong results in some case of multiple inheritance.

When virtually calling a function through a receiver of a non-primary base-class (that is not the first base in case of multiple inheritance) the analysis may falsely use the (correct) virtual index on the vtable of the first base class, even if the receiver is one of the secondary bases.

It may make sense to merge #773 first.

@fabianbs96 fabianbs96 added the bug Something isn't working label Jun 7, 2025
@fabianbs96 fabianbs96 requested a review from sritejakv June 7, 2025 15:04
@fabianbs96 fabianbs96 marked this pull request as ready for review June 7, 2025 15:04
@fabianbs96 fabianbs96 requested a review from MMory as a code owner June 7, 2025 15:04
@fabianbs96 fabianbs96 removed the request for review from MMory June 7, 2025 15:04
@fabianbs96 fabianbs96 self-assigned this Jun 7, 2025
@fabianbs96 fabianbs96 added this to the PhASAR 2510 milestone Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants