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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtcp_sender.h

Issue 2704263003: Add protection for RTCPSender::max_packet_size_. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 uint8_t sequence_number_fir_ GUARDED_BY(critical_section_rtcp_sender_); 231 uint8_t sequence_number_fir_ GUARDED_BY(critical_section_rtcp_sender_);
232 232
233 // REMB 233 // REMB
234 uint32_t remb_bitrate_ GUARDED_BY(critical_section_rtcp_sender_); 234 uint32_t remb_bitrate_ GUARDED_BY(critical_section_rtcp_sender_);
235 std::vector<uint32_t> remb_ssrcs_ GUARDED_BY(critical_section_rtcp_sender_); 235 std::vector<uint32_t> remb_ssrcs_ GUARDED_BY(critical_section_rtcp_sender_);
236 236
237 std::vector<rtcp::TmmbItem> tmmbn_to_send_ 237 std::vector<rtcp::TmmbItem> tmmbn_to_send_
238 GUARDED_BY(critical_section_rtcp_sender_); 238 GUARDED_BY(critical_section_rtcp_sender_);
239 uint32_t tmmbr_send_bps_ GUARDED_BY(critical_section_rtcp_sender_); 239 uint32_t tmmbr_send_bps_ GUARDED_BY(critical_section_rtcp_sender_);
240 uint32_t packet_oh_send_ GUARDED_BY(critical_section_rtcp_sender_); 240 uint32_t packet_oh_send_ GUARDED_BY(critical_section_rtcp_sender_);
241 size_t max_packet_size_; 241 size_t max_packet_size_ GUARDED_BY(critical_section_rtcp_sender_);
242 242
243 // APP 243 // APP
244 uint8_t app_sub_type_ GUARDED_BY(critical_section_rtcp_sender_); 244 uint8_t app_sub_type_ GUARDED_BY(critical_section_rtcp_sender_);
245 uint32_t app_name_ GUARDED_BY(critical_section_rtcp_sender_); 245 uint32_t app_name_ GUARDED_BY(critical_section_rtcp_sender_);
246 std::unique_ptr<uint8_t[]> app_data_ 246 std::unique_ptr<uint8_t[]> app_data_
247 GUARDED_BY(critical_section_rtcp_sender_); 247 GUARDED_BY(critical_section_rtcp_sender_);
248 uint16_t app_length_ GUARDED_BY(critical_section_rtcp_sender_); 248 uint16_t app_length_ GUARDED_BY(critical_section_rtcp_sender_);
249 249
250 // True if sending of XR Receiver reference time report is enabled. 250 // True if sending of XR Receiver reference time report is enabled.
251 bool xr_send_receiver_reference_time_enabled_ 251 bool xr_send_receiver_reference_time_enabled_
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 typedef std::unique_ptr<rtcp::RtcpPacket> (RTCPSender::*BuilderFunc)( 288 typedef std::unique_ptr<rtcp::RtcpPacket> (RTCPSender::*BuilderFunc)(
289 const RtcpContext&); 289 const RtcpContext&);
290 // Map from RTCPPacketType to builder. 290 // Map from RTCPPacketType to builder.
291 std::map<uint32_t, BuilderFunc> builders_; 291 std::map<uint32_t, BuilderFunc> builders_;
292 292
293 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTCPSender); 293 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTCPSender);
294 }; 294 };
295 } // namespace webrtc 295 } // namespace webrtc
296 296
297 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_ 297 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtcp_sender.cc » ('j') | webrtc/modules/rtp_rtcp/source/rtcp_sender.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698