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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/fec_receiver_unittest.cc

Issue 1220863002: Fail RTP parsing on excessive padding length. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: move paddingLength to + side Created 5 years, 5 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
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtp_payload_registry.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 0x12, 395 0x12,
396 0x2a, 396 0x2a,
397 0x98, 397 0x98,
398 0xe0, 398 0xe0,
399 0x29}; 399 0x29};
400 400
401 SurvivesMaliciousPacket(kTruncatedPacket, sizeof(kTruncatedPacket), 100); 401 SurvivesMaliciousPacket(kTruncatedPacket, sizeof(kTruncatedPacket), 100);
402 } 402 }
403 403
404 TEST_F(ReceiverFecTest, TruncatedPacketWithFBitSetEndingAfterFirstRedHeader) { 404 TEST_F(ReceiverFecTest, TruncatedPacketWithFBitSetEndingAfterFirstRedHeader) {
405 const uint8_t kPacket[] = {0xa9, 405 const uint8_t kPacket[] = {0x89,
406 0x27, 406 0x27,
407 0x3a, 407 0x3a,
408 0x83, 408 0x83,
409 0x27, 409 0x27,
410 0x3a, 410 0x3a,
411 0x3a, 411 0x3a,
412 0xf3, 412 0xf3,
413 0x67, 413 0x67,
414 0xbe, 414 0xbe,
415 0x2a, 415 0x2a,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 0x27, 489 0x27,
490 0xc4, 490 0xc4,
491 0x2a, 491 0x2a,
492 0x21, 492 0x21,
493 0x2a, 493 0x2a,
494 0x28}; 494 0x28};
495 SurvivesMaliciousPacket(kPacket, sizeof(kPacket), 100); 495 SurvivesMaliciousPacket(kPacket, sizeof(kPacket), 100);
496 } 496 }
497 497
498 } // namespace webrtc 498 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtp_payload_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698