pdb-type-viewer
pdb-type-viewer copied to clipboard
Inheritance over empty types assumes the type to be sizeof == 1
Given a type T of size S, with a parent which is totally empty, the padding is calculated to be -1.
This happens because the type size is reported as S but the actual padding calculation adds the empty parents size == 1 (by assumption) which results in calculating the padding improperly.
It seems that: Padding-For-Parent = Total-Size - (Parent-Offset + Parent-Size)
I will submit a proper screenshot later.