Open ktoso opened 1 month ago
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.
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.