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

Issue 2665343002: Change StunMessage::AddAttribute return type from bool to void. (Closed)

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

Description

Change StunMessage::AddAttribute return type from bool to void. Proper error handling was missing, using VERIFY to crash in debug builds, while release builds would ignore the error and leak the attribute memory. The check of attribute type consistency was changed to a RTC_DCHECK. Also removes a large number of uses of the deprecated VERIFY macro. BUG=webrtc:6424 Review-Url: https://codereview.webrtc.org/2665343002 Cr-Commit-Position: refs/heads/master@{#16413} Committed: https://chromium.googlesource.com/external/webrtc/+/cc99bc25d8bc8acc944b31d7ebcb5cb54b8fd2c7

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -71 lines) Patch
M webrtc/p2p/base/relayport.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M webrtc/p2p/base/stun.h View 1 chunk +2 lines, -4 lines 0 comments Download
M webrtc/p2p/base/stun.cc View 5 chunks +5 lines, -8 lines 3 comments Download
M webrtc/p2p/base/stun_unittest.cc View 15 chunks +15 lines, -15 lines 0 comments Download
M webrtc/p2p/base/turnport.cc View 6 chunks +19 lines, -19 lines 0 comments Download
M webrtc/p2p/base/turnserver.cc View 8 chunks +19 lines, -19 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
nisse-webrtc
3 years, 10 months ago (2017-02-01 10:04:13 UTC) #2
kwiberg-webrtc
Looks good, but I have a question. https://codereview.webrtc.org/2665343002/diff/1/webrtc/p2p/base/stun.cc File webrtc/p2p/base/stun.cc (right): https://codereview.webrtc.org/2665343002/diff/1/webrtc/p2p/base/stun.cc#newcode79 webrtc/p2p/base/stun.cc:79: Old non-debug ...
3 years, 10 months ago (2017-02-01 10:40:17 UTC) #3
pthatcher2
LGTM I'd prefer fixing the leak, but I'd be fine if that's in another CL ...
3 years, 10 months ago (2017-02-01 22:15:06 UTC) #5
nisse-webrtc
On 2017/02/01 22:15:06, pthatcher2 wrote: > LGTM Thanks for the review. I'm not at all ...
3 years, 10 months ago (2017-02-02 07:59:46 UTC) #6
kwiberg-webrtc
lgtm https://codereview.webrtc.org/2665343002/diff/1/webrtc/p2p/base/stun.cc File webrtc/p2p/base/stun.cc (right): https://codereview.webrtc.org/2665343002/diff/1/webrtc/p2p/base/stun.cc#newcode79 webrtc/p2p/base/stun.cc:79: On 2017/02/01 22:15:06, pthatcher2 wrote: > On 2017/02/01 ...
3 years, 10 months ago (2017-02-02 08:39:01 UTC) #7
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/2665343002/1
3 years, 10 months ago (2017-02-02 08:49:58 UTC) #9
commit-bot: I haz the power
3 years, 10 months ago (2017-02-02 09:31:35 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/external/webrtc/+/cc99bc25d8bc8acc944b31d7e...

Powered by Google App Engine
This is Rietveld 408576698