Add Fuzzing support for ParseRtcpPacketSenderSsrc.
This function is called on each incoming RTCP payload. Bug: webrtc:10395 Change-Id: I164746fe45912cc503565e77046b5d884e0204e6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/127122 Commit-Queue: Benjamin Wright <benwright@webrtc.org> Reviewed-by: Qingsi Wang <qingsi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27110}
This commit is contained in:
committed by
Commit Bot
parent
baf271f978
commit
d6c4b80268
@ -587,3 +587,14 @@ webrtc_fuzzer_test("string_to_number_fuzzer") {
|
||||
]
|
||||
seed_corpus = "corpora/string_to_number-corpus"
|
||||
}
|
||||
|
||||
webrtc_fuzzer_test("rtp_rtcp_demuxer_helper_fuzzer") {
|
||||
sources = [
|
||||
"rtp_rtcp_demuxer_helper_fuzzer.cc",
|
||||
]
|
||||
deps = [
|
||||
"../../api:array_view",
|
||||
"../../call:rtp_receiver",
|
||||
]
|
||||
seed_corpus = "corpora/rtcp-corpus"
|
||||
}
|
||||
|
||||
23
test/fuzzers/rtp_rtcp_demuxer_helper_fuzzer.cc
Normal file
23
test/fuzzers/rtp_rtcp_demuxer_helper_fuzzer.cc
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by a BSD-style license
|
||||
* that can be found in the LICENSE file in the root of the source
|
||||
* tree. An additional intellectual property rights grant can be found
|
||||
* in the file PATENTS. All contributing project authors may
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "api/array_view.h"
|
||||
#include "call/rtp_rtcp_demuxer_helper.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
void FuzzOneInput(const uint8_t* data, size_t size) {
|
||||
ParseRtcpPacketSenderSsrc(rtc::MakeArrayView(data, size));
|
||||
}
|
||||
|
||||
} // namespace webrtc
|
||||
Reference in New Issue
Block a user