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

Issue 2704263003: Add protection for RTCPSender::max_packet_size_. (Closed)

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

Description

Add protection for RTCPSender::max_packet_size_. This cl protects the access to the max_packet_size_, without fixing the underlying race; the value is simply copied to a local variable, whose value might be stale when used. BUG=webrtc:7189 Review-Url: https://codereview.webrtc.org/2704263003 Cr-Commit-Position: refs/heads/master@{#16754} Committed: https://chromium.googlesource.com/external/webrtc/+/6f142eb36ed2bcc8c3b7557daf6839e976ccd4b8

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -4 lines) Patch
M webrtc/modules/rtp_rtcp/source/rtcp_sender.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_sender.cc View 4 chunks +9 lines, -3 lines 4 comments Download

Messages

Total messages: 11 (4 generated)
nisse-webrtc
https://codereview.webrtc.org/2704263003/diff/1/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc File webrtc/modules/rtp_rtcp/source/rtcp_sender.cc (right): https://codereview.webrtc.org/2704263003/diff/1/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc#newcode830 webrtc/modules/rtp_rtcp/source/rtcp_sender.cc:830: size_t bytes_sent = container.SendPackets(max_packet_size); Or can we move this ...
3 years, 10 months ago (2017-02-21 09:07:26 UTC) #2
tommi
please also see the comment I added to the bug. I'd rather reduce locking if ...
3 years, 10 months ago (2017-02-21 09:14:33 UTC) #3
danilchap
lgtm nice to see you fix it without adding locks on send path. https://codereview.webrtc.org/2704263003/diff/1/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc File ...
3 years, 10 months ago (2017-02-21 09:16:31 UTC) #4
nisse-webrtc
On 2017/02/21 09:14:33, tommi (webrtc) wrote: > please also see the comment I added to ...
3 years, 10 months ago (2017-02-21 12:54:29 UTC) #5
tommi
Since I seem to have added myself as a reviewer - lgtm since this fixes ...
3 years, 10 months ago (2017-02-21 13:12:19 UTC) #6
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/2704263003/1
3 years, 10 months ago (2017-02-21 13:43:10 UTC) #8
commit-bot: I haz the power
3 years, 10 months ago (2017-02-21 15:32:51 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/external/webrtc/+/6f142eb36ed2bcc8c3b7557da...

Powered by Google App Engine
This is Rietveld 408576698