In the latest release of iOS SDK, the SDK crashs with `exc_bad_access` when setting remote/local description with invalid session description.
This is caused by `sdp.nativeDescription->Clone()` in RTCPeerConnection.mm:600
When an invalid session description is provided, the return value of `sdp.nativeDescription` is nullptr, and trying to call `Clone()` on it results in a bad access crash.
This can be fixed by changing the code to something like:
_peerConnection->SetRemoteDescription(sdp.nativeDescription ? sdp.nativeDescription->Clone() : nullptr, observer);
I found this out during stress testing. While the session description should be valid at all times, I think having it safely disregarded is better than simply crashing the app.
It's my first time posting here; is there a good way to go about suggesting a fix for this?