Skip to content

Drop in declare_class! is unsound if the object is deallocated before being fully initialized #458

@madsmtm

Description

@madsmtm

Realized this in #414 (comment).

Will probably need a drop flag, unless we figure something crazy out, see the above issue for discussion.

There are a few things in std that use similar things to drop flags, so maybe we can take inspiration from those:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-objc2Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` cratesI-unsoundA soundness hole, or affecting soundness

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions