webrtc/sdk
Andy Tamilo b8841f8ebe Fix race condition on ObjCNetworkMonitor::network_monitor_
There is a race condition on reading
`ObjCNetworkMonitor::_network_monitor` field.
The `ObjCNetworkMonitor::OnPathUpdate()` checks its nullability
on the org.webrtc.RTCDispatcherNetworkMonitor thread BEFORE the
`ObjCNetworkMonitor::Start()` assigns it on the network_monitor thread.
In addition, this field is neither atomic nor protected by mutex so its
last assigned value is not guaranteed to be visible to
another [reading] thread.

Bug: webrtc:355238623
Change-Id: I1a05215111cc873b7d4931824e18f281aebfb91f
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/357880
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Reviewed-by: Peter Hanspers <peterhanspers@webrtc.org>
Reviewed-by: Jonas Oreland <jonaso@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#42778}
2024-08-14 09:29:55 +00:00
..
android Reland "Remove jni_zero type aliases in jni_generator_helper.h." 2024-08-13 10:01:01 +00:00
objc Fix race condition on ObjCNetworkMonitor::network_monitor_ 2024-08-14 09:29:55 +00:00
BUILD.gn Fix RTCMTLNSVideoView undefined symbol error 2024-06-20 13:46:39 +00:00
media_constraints.cc Remove unused combined_audio_video_bwe. 2023-05-26 15:56:00 +00:00
media_constraints.h Remove unused combined_audio_video_bwe. 2023-05-26 15:56:00 +00:00
media_constraints_unittest.cc Remove unused combined_audio_video_bwe. 2023-05-26 15:56:00 +00:00
OWNERS Remove wildcard ownership for build files. 2020-02-19 14:05:46 +00:00