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

Issue 2837133003: Don't crash if STUN error message is missing ERROR-CODE attribute. (Closed)

Created:
3 years, 8 months ago by Taylor Brandstetter
Modified:
3 years, 8 months ago
Reviewers:
pthatcher1
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Don't crash if STUN error message is missing ERROR-CODE attribute. This is something a well-behaving STUN server shouldn't do, but we shouldn't crash if it does happen. Also adding helper function for the common operation of extracting just the error code out of a STUN packet. BUG=chromium:708469 Review-Url: https://codereview.webrtc.org/2837133003 Cr-Commit-Position: refs/heads/master@{#17892} Committed: https://chromium.googlesource.com/external/webrtc/+/996fc6bdb70c5e855fb8eb8fdde29640c028983c

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -33 lines) Patch
M webrtc/p2p/base/port.cc View 1 chunk +1 line, -6 lines 0 comments Download
M webrtc/p2p/base/relayport.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/stun.h View 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/p2p/base/stun.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/p2p/base/stun_unittest.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M webrtc/p2p/base/stunport.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/turnport.cc View 5 chunks +22 lines, -25 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
Taylor Brandstetter
PTAL Peter
3 years, 8 months ago (2017-04-25 00:51:03 UTC) #3
pthatcher1
lgtm
3 years, 8 months ago (2017-04-25 19:59:30 UTC) #4
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/2837133003/1
3 years, 8 months ago (2017-04-26 15:55:46 UTC) #6
commit-bot: I haz the power
3 years, 8 months ago (2017-04-26 16:21:27 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/external/webrtc/+/996fc6bdb70c5e855fb8eb8fd...

Powered by Google App Engine
This is Rietveld 408576698