Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Issue 3006723002: Fix the Chromium crash when creating an answer without a remote description. (Closed)

Created:
3 years, 3 months ago by Zhi Huang
Modified:
3 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix the Chromium crash when creating an answer without a remote description. Replacing the RTC_DCHECK with an if condition so that the method GetOptionsForAnswer won't crash when there is no remote description. WebRtcSessionDescriptionFactory will handle the null remote description. TBR=deadbeef@webrtc.org BUG=chromium:757830 Review-Url: https://codereview.webrtc.org/3006723002 Cr-Commit-Position: refs/heads/master@{#19589} Committed: https://chromium.googlesource.com/external/webrtc/+/141aacbf0b2df237e3e509ead278b770a2a04ad7

Patch Set 1 #

Patch Set 2 : Add a unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -46 lines) Patch
M webrtc/pc/peerconnection.cc View 1 chunk +13 lines, -12 lines 0 comments Download
M webrtc/pc/peerconnectioninterface_unittest.cc View 1 2 chunks +47 lines, -34 lines 0 comments Download

Messages

Total messages: 21 (17 generated)
Zhi Huang
Hi Taylor, This is an one-line change to fix the chromium crash. PTAL.
3 years, 3 months ago (2017-08-28 20:36:35 UTC) #8
Taylor Brandstetter
lgtm. Though can you add a test for "CreateAnswer fails if no offer has been ...
3 years, 3 months ago (2017-08-29 02:11:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/3006723002/40001
3 years, 3 months ago (2017-08-29 20:21:52 UTC) #18
commit-bot: I haz the power
3 years, 3 months ago (2017-08-29 20:24:01 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/external/webrtc/+/141aacbf0b2df237e3e509ead...

Powered by Google App Engine
This is Rietveld 408576698