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

Issue 2915913003: Prevent memory corruption by StreamId::Set (Closed)

Created:
3 years, 6 months ago by eladalon
Modified:
3 years, 6 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Prevent memory corruption by StreamId::Set Use RTC_CHECK to crash if attempting to set an RSID whose name's length exceeds the maximum. BUG=None Review-Url: https://codereview.webrtc.org/2915913003 Cr-Commit-Position: refs/heads/master@{#18405} Committed: https://chromium.googlesource.com/external/webrtc/+/4a3c9f60a39b82ef27bd4582c088fa5af5a24566

Patch Set 1 #

Total comments: 4

Patch Set 2 : CR response #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M webrtc/common_types.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (15 generated)
eladalon
PTAL
3 years, 6 months ago (2017-06-01 15:40:10 UTC) #3
danilchap
https://codereview.webrtc.org/2915913003/diff/1/webrtc/common_types.cc File webrtc/common_types.cc (right): https://codereview.webrtc.org/2915913003/diff/1/webrtc/common_types.cc#newcode29 webrtc/common_types.cc:29: memcpy(value_, data, std::min(size, kMaxSize)); you shouldn't try to recover ...
3 years, 6 months ago (2017-06-01 15:42:44 UTC) #4
eladalon
https://codereview.webrtc.org/2915913003/diff/1/webrtc/common_types.cc File webrtc/common_types.cc (right): https://codereview.webrtc.org/2915913003/diff/1/webrtc/common_types.cc#newcode29 webrtc/common_types.cc:29: memcpy(value_, data, std::min(size, kMaxSize)); On 2017/06/01 15:42:44, danilchap wrote: ...
3 years, 6 months ago (2017-06-01 15:48:43 UTC) #5
danilchap
https://codereview.webrtc.org/2915913003/diff/1/webrtc/common_types.cc File webrtc/common_types.cc (right): https://codereview.webrtc.org/2915913003/diff/1/webrtc/common_types.cc#newcode29 webrtc/common_types.cc:29: memcpy(value_, data, std::min(size, kMaxSize)); On 2017/06/01 15:48:43, eladalon wrote: ...
3 years, 6 months ago (2017-06-01 15:54:56 UTC) #10
eladalon
https://codereview.webrtc.org/2915913003/diff/1/webrtc/common_types.cc File webrtc/common_types.cc (right): https://codereview.webrtc.org/2915913003/diff/1/webrtc/common_types.cc#newcode29 webrtc/common_types.cc:29: memcpy(value_, data, std::min(size, kMaxSize)); On 2017/06/01 15:54:56, danilchap wrote: ...
3 years, 6 months ago (2017-06-01 15:59:48 UTC) #11
eladalon
Changed the CL description, too.
3 years, 6 months ago (2017-06-01 16:00:28 UTC) #13
danilchap
lgtm
3 years, 6 months ago (2017-06-01 16:01:10 UTC) #14
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/2915913003/20001
3 years, 6 months ago (2017-06-01 16:08:17 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/17690)
3 years, 6 months ago (2017-06-01 16:12:56 UTC) #18
eladalon
stefan, could you please accept?
3 years, 6 months ago (2017-06-01 17:28:28 UTC) #19
holmer
lgtm
3 years, 6 months ago (2017-06-02 07:27:31 UTC) #21
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/2915913003/20001
3 years, 6 months ago (2017-06-02 07:38:27 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/17718)
3 years, 6 months ago (2017-06-02 07:41:57 UTC) #25
stefan-webrtc
lgtm
3 years, 6 months ago (2017-06-02 08:43:34 UTC) #26
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/2915913003/20001
3 years, 6 months ago (2017-06-02 10:35:10 UTC) #28
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 10:37:52 UTC) #31
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/external/webrtc/+/4a3c9f60a39b82ef27bd4582c...

Powered by Google App Engine
This is Rietveld 408576698