Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[iOS][Android] Fix crash in Exception.CaptureDispatchState (#70970)
There is a crash in `Exception.CaptureDispatchState` when called from one thread at the same time another calls into `Exception.RestoreDispatchState`. The reason for the crash is due to the way we do not update `foreignExceptionFrames` in a thread-safe way. `foreignExceptionFrames` is used in both methods and can crash when the size changes before the array is copied. The fix copies `foreignExceptionFrame` into a local variable in `CaptureDispatchState` Fixes #70081
- Loading branch information