Skip to content

Invalidate Java wrapper when we destroy() an underlying swift instance #85

Open
@ktoso

Description

@ktoso

We should invalidate wrapper types when we destroy the underlying Swift memory.

This is done in SwiftMemoryResourceCleanup.java

We should zero out the pointer or something else, such that we can prevent use-after-free from the Java side reaching into Swift destroyed objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions