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

Issue 2571073002: Fixing integer overflow when parsing bandwidth attribute. (Closed)

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

Description

Fixing integer overflow when parsing bandwidth attribute. It's still valid SDP so just clamp it at INT_MAX. BUG=chromium:648071 Committed: https://crrev.com/b2362577634de26df7e824f526b40ec623b7abfa Cr-Commit-Position: refs/heads/master@{#15582}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Making code more readable. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -0 lines) Patch
M webrtc/api/webrtcsdp.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/api/webrtcsdp_unittest.cc View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
Taylor Brandstetter
4 years ago (2016-12-13 23:08:29 UTC) #2
pthatcher1
lgtm, with small suggestion https://codereview.webrtc.org/2571073002/diff/1/webrtc/api/webrtcsdp.cc File webrtc/api/webrtcsdp.cc (right): https://codereview.webrtc.org/2571073002/diff/1/webrtc/api/webrtcsdp.cc#newcode2601 webrtc/api/webrtcsdp.cc:2601: media_desc->set_bandwidth(b < INT_MAX / 1000 ...
4 years ago (2016-12-13 23:58:05 UTC) #3
Taylor Brandstetter
https://codereview.webrtc.org/2571073002/diff/1/webrtc/api/webrtcsdp.cc File webrtc/api/webrtcsdp.cc (right): https://codereview.webrtc.org/2571073002/diff/1/webrtc/api/webrtcsdp.cc#newcode2601 webrtc/api/webrtcsdp.cc:2601: media_desc->set_bandwidth(b < INT_MAX / 1000 ? b * 1000 ...
4 years ago (2016-12-14 00:17:01 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/2571073002/20001
4 years ago (2016-12-14 00:17:11 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-14 00:37:10 UTC) #10
commit-bot: I haz the power
4 years ago (2016-12-14 00:37:24 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b2362577634de26df7e824f526b40ec623b7abfa
Cr-Commit-Position: refs/heads/master@{#15582}

Powered by Google App Engine
This is Rietveld 408576698