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

Issue 2243403007: NetEq: Changing checked_cast to saturated_cast (Closed)

Created:
4 years, 4 months ago by hlundin-webrtc
Modified:
4 years, 4 months ago
Reviewers:
aleloi
CC:
webrtc-reviews_webrtc.org, kwiberg-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, peah-webrtc, minyue-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

NetEq: Changing checked_cast to saturated_cast The cast involves packet_len_samp, which is derived from the timestamps and sequence numbers of incoming packets. Being values from the outside, these should be treated as if any value is possible, making a checked_cast unsuitable. Changing instead to saturated_cast to avoid overflow with out-of-bounds values. Committed: https://crrev.com/38d840c35a85996b9b50294becc2239e8123f67e Cr-Commit-Position: refs/heads/master@{#13815}

Patch Set 1 #

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

Messages

Total messages: 11 (5 generated)
hlundin-webrtc
Alex, PTAL. Thanks!
4 years, 4 months ago (2016-08-18 08:48:59 UTC) #3
aleloi
Just to check that I understood all the template code in saturated_cast correctly: saturated_cast<int>(int64 value) ...
4 years, 4 months ago (2016-08-18 08:59:02 UTC) #4
hlundin-webrtc
On 2016/08/18 08:59:02, aleloi wrote: > Just to check that I understood all the template ...
4 years, 4 months ago (2016-08-18 09:02:56 UTC) #5
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/2243403007/1
4 years, 4 months ago (2016-08-18 09:03:14 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-18 10:49:37 UTC) #9
commit-bot: I haz the power
4 years, 4 months ago (2016-08-18 10:49:48 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/38d840c35a85996b9b50294becc2239e8123f67e
Cr-Commit-Position: refs/heads/master@{#13815}

Powered by Google App Engine
This is Rietveld 408576698