You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that a class needs a vftable for each class inherited in its hierarchy. So if class A inherits from B, which inherits from C and D, then A needs at least two vftables, even though it only directly inherits from one class.
sei-eschwartz
changed the title
Bug in reasonVFTableBelongsToClass
bug: vftables are needed for each class inherited in its hierarchy, not just immediate bases
Mar 18, 2022
There is a bug in reasonVFTableBelongsToClass: https://github.com/cmu-sei/pharos/blob/master/share/prolog/oorules/rules.pl#L947
The problem is that a class needs a vftable for each class inherited in its hierarchy. So if class A inherits from B, which inherits from C and D, then A needs at least two vftables, even though it only directly inherits from one class.
This first came to light in #187.
The text was updated successfully, but these errors were encountered: