NSObject
is defined incorrectly in builtin type libraries
#6240
Labels
Component: Type Libraries
Effort: Low
Issue should take < 1 week
Impact: Medium
Issue is impactful with a bad, or no, workaround
Type: Bug
Issue is a non-crashing bug with repro steps
Version and Platform (required):
Bug Description:
For a Mach-O binary
NSObject
has the following type definition in theioscommon-aarch64
library:While this is not entirely incorrect its not really the best way to define it.
When viewing DSC the type definition is actually incorrect but in a different way for some reason:
Additionally the size of the
NSObject
is8
initially when viewing DSC, but if you go to change the type of its only field,isa
, and then just provide the exact same type,NSObject
becomes0x28
in size. This is the correct size for that definition becauseobjc_class_t
is that size and the definition defines it as an inline struct field.Expected Behavior:
The type definition is more accurately defined as:
One of the benefits of this is it allows it to be used as a base class for other class/struct definitions.
The text was updated successfully, but these errors were encountered: