Skip to content

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
Copy link
Collaborator

@sritejakv sritejakv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks.

@fabianbs96 fabianbs96 merged commit e5e20ba into secure-software-engineering:development Jul 27, 2025
8 checks passed
@fabianbs96 fabianbs96 deleted the f-MultiInherFix branch July 27, 2025 07:04
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.

4 participants