Changeset 142887 in webkit
- Timestamp:
- Feb 14, 2013, 9:47:36 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r142886 r142887 1 2013-02-14 Tommy Widenflycht <tommyw@google.com> 2 3 MediaStream API: RTCDataChannel triggers a use-after-free 4 https://bugs.webkit.org/show_bug.cgi?id=109806 5 6 Reviewed by Adam Barth. 7 8 Making sure RTCPeerConnection::stop() is always called at least once. 9 Also making sure that RTCDataChannels state gets set to Closed correctly. 10 11 Hard to test in WebKit but covered by Chromium tests. 12 13 * Modules/mediastream/RTCDataChannel.cpp: 14 (WebCore::RTCDataChannel::stop): 15 * Modules/mediastream/RTCPeerConnection.cpp: 16 (WebCore::RTCPeerConnection::~RTCPeerConnection): 17 (WebCore::RTCPeerConnection::stop): 18 1 19 2013-02-14 Vsevolod Vlasov <vsevik@chromium.org> 2 20 -
trunk/Source/WebCore/Modules/mediastream/RTCDataChannel.cpp
r137441 r142887 244 244 { 245 245 m_stopped = true; 246 m_readyState = ReadyStateClosed; 246 247 m_handler->setClient(0); 247 248 m_scriptExecutionContext = 0; -
trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp
r141984 r142887 163 163 RTCPeerConnection::~RTCPeerConnection() 164 164 { 165 stop(); 165 166 } 166 167 … … 591 592 void RTCPeerConnection::stop() 592 593 { 594 if (m_stopped) 595 return; 596 593 597 m_stopped = true; 594 598 m_iceConnectionState = IceConnectionStateClosed;
Note:
See TracChangeset
for help on using the changeset viewer.