pdb-type-viewer icon indicating copy to clipboard operation
pdb-type-viewer copied to clipboard

Inheritance over empty types assumes the type to be sizeof == 1

Open Dandielo opened this issue 5 years ago • 0 comments

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.

Dandielo avatar Apr 14 '20 14:04 Dandielo