2015-11-23 15:12:06 +01:00
|
|
|
# Copyright (c) 2015 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.
|
|
|
|
|
|
2017-01-24 06:58:22 -08:00
|
|
|
import("../../webrtc.gni")
|
2015-11-23 15:12:06 +01:00
|
|
|
import("//build/config/features.gni")
|
2016-06-20 06:03:39 -07:00
|
|
|
import("//testing/libfuzzer/fuzzer_test.gni")
|
2015-11-23 15:12:06 +01:00
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_static_library("webrtc_fuzzer_main") {
|
2015-11-23 15:12:06 +01:00
|
|
|
sources = [
|
|
|
|
|
"webrtc_fuzzer_main.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2015-11-25 21:58:36 +01:00
|
|
|
"../../system_wrappers:field_trial_default",
|
2015-11-26 14:52:23 +01:00
|
|
|
"../../system_wrappers:metrics_default",
|
2018-01-17 19:57:24 +00:00
|
|
|
"../../system_wrappers:runtime_enabled_features_default",
|
2015-11-23 15:12:06 +01:00
|
|
|
"//testing/libfuzzer:libfuzzer_main",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-17 16:44:47 +02:00
|
|
|
rtc_static_library("fuzz_data_helper") {
|
|
|
|
|
sources = [
|
|
|
|
|
"fuzz_data_helper.cc",
|
|
|
|
|
"fuzz_data_helper.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../api:array_view",
|
|
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
|
|
|
|
]
|
|
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
|
|
|
|
}
|
|
|
|
|
|
2016-06-20 06:03:39 -07:00
|
|
|
template("webrtc_fuzzer_test") {
|
|
|
|
|
fuzzer_test(target_name) {
|
|
|
|
|
forward_variables_from(invoker, "*")
|
2017-10-05 10:58:49 +02:00
|
|
|
deps += [
|
2018-05-17 16:44:47 +02:00
|
|
|
":fuzz_data_helper",
|
2017-10-05 10:58:49 +02:00
|
|
|
":webrtc_fuzzer_main",
|
|
|
|
|
|
|
|
|
|
# Link unconditionally with webrtc's TaskQueue, regardless of
|
|
|
|
|
# rtc_link_task_queue_impl flag.
|
|
|
|
|
"../../rtc_base:rtc_task_queue_impl",
|
|
|
|
|
]
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-06-20 06:03:39 -07:00
|
|
|
suppressed_configs = [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-17 14:28:16 +01:00
|
|
|
webrtc_fuzzer_test("h264_depacketizer_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"h264_depacketizer_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../modules/rtp_rtcp",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
webrtc_fuzzer_test("vp8_depacketizer_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"vp8_depacketizer_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../modules/rtp_rtcp",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-15 21:57:52 +01:00
|
|
|
webrtc_fuzzer_test("vp9_depacketizer_fuzzer") {
|
2015-11-23 15:12:06 +01:00
|
|
|
sources = [
|
|
|
|
|
"vp9_depacketizer_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../modules/rtp_rtcp",
|
|
|
|
|
]
|
|
|
|
|
}
|
2015-11-26 14:52:23 +01:00
|
|
|
|
2015-12-15 21:57:52 +01:00
|
|
|
webrtc_fuzzer_test("vp8_qp_parser_fuzzer") {
|
2015-11-26 14:52:23 +01:00
|
|
|
sources = [
|
|
|
|
|
"vp8_qp_parser_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-06-01 04:47:20 -07:00
|
|
|
"../../modules/video_coding:video_coding_utility",
|
2015-11-26 14:52:23 +01:00
|
|
|
"../../modules/video_coding/",
|
|
|
|
|
]
|
2016-10-03 02:02:49 -07:00
|
|
|
}
|
|
|
|
|
|
2017-06-06 23:41:44 -07:00
|
|
|
webrtc_fuzzer_test("vp9_qp_parser_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"vp9_qp_parser_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../modules/video_coding:video_coding_utility",
|
|
|
|
|
"../../modules/video_coding/",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-11-05 03:10:22 -07:00
|
|
|
webrtc_fuzzer_test("h264_bitstream_parser_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"h264_bitstream_parser_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-06-01 04:47:20 -07:00
|
|
|
"../../common_video",
|
2016-11-05 03:10:22 -07:00
|
|
|
"../../modules/video_coding/",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-13 14:04:24 +01:00
|
|
|
webrtc_fuzzer_test("forward_error_correction_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"forward_error_correction_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../modules/rtp_rtcp",
|
|
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
]
|
|
|
|
|
libfuzzer_options = [ "max_len=5000" ]
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-03 02:02:49 -07:00
|
|
|
webrtc_fuzzer_test("flexfec_header_reader_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"flexfec_header_reader_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-04-25 04:04:50 -07:00
|
|
|
"../../modules/rtp_rtcp",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2016-10-03 02:02:49 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-11-06 22:45:15 -08:00
|
|
|
webrtc_fuzzer_test("flexfec_sender_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"flexfec_sender_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-04-25 04:04:50 -07:00
|
|
|
"../../modules/rtp_rtcp",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../../system_wrappers",
|
2016-11-06 22:45:15 -08:00
|
|
|
]
|
|
|
|
|
libfuzzer_options = [ "max_len=200" ]
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-03 02:02:49 -07:00
|
|
|
webrtc_fuzzer_test("ulpfec_header_reader_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"ulpfec_header_reader_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-04-25 04:04:50 -07:00
|
|
|
"../../modules/rtp_rtcp",
|
|
|
|
|
"../../modules/rtp_rtcp:fec_test_helper",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2016-10-03 02:02:49 -07:00
|
|
|
]
|
2015-12-11 18:25:45 +01:00
|
|
|
}
|
|
|
|
|
|
2016-10-31 05:27:07 -07:00
|
|
|
webrtc_fuzzer_test("ulpfec_generator_fuzzer") {
|
2015-12-11 18:25:45 +01:00
|
|
|
sources = [
|
2016-10-31 05:27:07 -07:00
|
|
|
"ulpfec_generator_fuzzer.cc",
|
2015-12-11 18:25:45 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
2017-04-25 04:04:50 -07:00
|
|
|
"../../modules/rtp_rtcp",
|
|
|
|
|
"../../modules/rtp_rtcp:fec_test_helper",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2015-12-11 18:25:45 +01:00
|
|
|
]
|
2015-11-26 14:52:23 +01:00
|
|
|
}
|
2015-12-08 11:27:27 +01:00
|
|
|
|
2017-10-20 16:23:23 +02:00
|
|
|
webrtc_fuzzer_test("ulpfec_receiver_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"ulpfec_receiver_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../modules/rtp_rtcp",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
2017-10-20 16:23:23 +02:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
]
|
|
|
|
|
libfuzzer_options = [ "max_len=2000" ]
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-18 01:18:04 -07:00
|
|
|
webrtc_fuzzer_test("flexfec_receiver_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"flexfec_receiver_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-04-25 04:04:50 -07:00
|
|
|
"../../modules/rtp_rtcp",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2016-10-18 01:18:04 -07:00
|
|
|
]
|
|
|
|
|
libfuzzer_options = [ "max_len=2000" ]
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-11 02:01:56 -08:00
|
|
|
webrtc_fuzzer_test("packet_buffer_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"packet_buffer_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-04-24 13:05:47 -07:00
|
|
|
"../../modules/video_coding/",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../../system_wrappers",
|
2017-01-11 02:01:56 -08:00
|
|
|
]
|
2018-05-17 16:44:47 +02:00
|
|
|
libfuzzer_options = [ "max_len=200000" ]
|
2017-01-11 02:01:56 -08:00
|
|
|
}
|
|
|
|
|
|
2016-02-23 11:35:30 +01:00
|
|
|
webrtc_fuzzer_test("rtcp_receiver_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"rtcp_receiver_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-04-25 04:04:50 -07:00
|
|
|
"../../modules/rtp_rtcp",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../../system_wrappers:system_wrappers",
|
2016-02-23 11:35:30 +01:00
|
|
|
]
|
2016-06-22 06:43:22 -07:00
|
|
|
seed_corpus = "corpora/rtcp-corpus"
|
2016-02-23 11:35:30 +01:00
|
|
|
}
|
|
|
|
|
|
2016-04-20 05:25:10 -07:00
|
|
|
webrtc_fuzzer_test("rtp_packet_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"rtp_packet_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-12-06 07:51:33 +01:00
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
2016-04-20 05:25:10 -07:00
|
|
|
]
|
2016-06-22 06:43:22 -07:00
|
|
|
seed_corpus = "corpora/rtp-corpus"
|
2016-04-20 05:25:10 -07:00
|
|
|
}
|
|
|
|
|
|
2016-06-23 03:50:39 -07:00
|
|
|
webrtc_fuzzer_test("rtp_header_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"rtp_header_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-04-25 04:04:50 -07:00
|
|
|
"../../modules/rtp_rtcp",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
2016-06-23 03:50:39 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-18 09:26:06 -07:00
|
|
|
webrtc_fuzzer_test("congestion_controller_feedback_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"congestion_controller_feedback_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-06-01 04:47:20 -07:00
|
|
|
"../../logging:rtc_event_log_api",
|
2018-02-01 11:04:46 -08:00
|
|
|
"../../logging:rtc_event_log_impl_base",
|
2017-08-21 10:45:07 +02:00
|
|
|
"../../modules/congestion_controller",
|
|
|
|
|
"../../modules/pacing",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../../modules/remote_bitrate_estimator:remote_bitrate_estimator",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
2016-07-18 09:26:06 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("audio_decoder_fuzzer") {
|
2015-12-08 11:27:27 +01:00
|
|
|
sources = [
|
|
|
|
|
"audio_decoder_fuzzer.cc",
|
|
|
|
|
"audio_decoder_fuzzer.h",
|
|
|
|
|
]
|
2017-06-01 04:47:20 -07:00
|
|
|
deps = [
|
|
|
|
|
"../..:webrtc_common",
|
2017-12-15 14:40:10 +01:00
|
|
|
"../../:typedefs",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../../api/audio_codecs:audio_codecs_api",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2018-06-18 12:54:17 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-06-01 04:47:20 -07:00
|
|
|
]
|
2015-12-08 11:27:27 +01:00
|
|
|
}
|
|
|
|
|
|
2015-12-15 21:57:52 +01:00
|
|
|
webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") {
|
2015-12-08 11:27:27 +01:00
|
|
|
sources = [
|
|
|
|
|
"audio_decoder_ilbc_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_decoder_fuzzer",
|
|
|
|
|
"../../modules/audio_coding:ilbc",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-15 21:57:52 +01:00
|
|
|
webrtc_fuzzer_test("audio_decoder_isac_fuzzer") {
|
2015-12-08 11:27:27 +01:00
|
|
|
sources = [
|
|
|
|
|
"audio_decoder_isac_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_decoder_fuzzer",
|
|
|
|
|
"../../modules/audio_coding:isac",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-09 00:00:23 -08:00
|
|
|
webrtc_fuzzer_test("audio_decoder_isac_incoming_packet_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"audio_decoder_isac_incoming_packet_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_decoder_fuzzer",
|
|
|
|
|
"../../modules/audio_coding:isac",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-15 21:57:52 +01:00
|
|
|
webrtc_fuzzer_test("audio_decoder_isacfix_fuzzer") {
|
2015-12-08 11:27:27 +01:00
|
|
|
sources = [
|
|
|
|
|
"audio_decoder_isacfix_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_decoder_fuzzer",
|
|
|
|
|
"../../modules/audio_coding:isac_fix",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-15 21:57:52 +01:00
|
|
|
webrtc_fuzzer_test("audio_decoder_opus_fuzzer") {
|
2015-12-08 11:27:27 +01:00
|
|
|
sources = [
|
|
|
|
|
"audio_decoder_opus_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_decoder_fuzzer",
|
|
|
|
|
"../../modules/audio_coding:webrtc_opus",
|
|
|
|
|
]
|
|
|
|
|
}
|
2016-02-09 00:00:23 -08:00
|
|
|
|
|
|
|
|
webrtc_fuzzer_test("audio_decoder_opus_redundant_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"audio_decoder_opus_redundant_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_decoder_fuzzer",
|
|
|
|
|
"../../modules/audio_coding:webrtc_opus",
|
|
|
|
|
]
|
|
|
|
|
}
|
2016-07-06 05:59:23 -07:00
|
|
|
|
2018-05-09 14:56:08 +02:00
|
|
|
webrtc_fuzzer_test("audio_encoder_opus_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"audio_encoder_opus_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../api:array_view",
|
|
|
|
|
"../../api/audio_codecs/opus:audio_encoder_opus",
|
|
|
|
|
"../../rtc_base:checks",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-16 05:05:39 -07:00
|
|
|
webrtc_fuzzer_test("turn_unwrap_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"turn_unwrap_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../media:media",
|
2018-01-11 17:07:30 +01:00
|
|
|
"../../media:rtc_media_base",
|
2016-09-16 05:05:39 -07:00
|
|
|
]
|
|
|
|
|
}
|
2016-07-06 08:02:00 -07:00
|
|
|
|
2016-10-05 02:27:42 -07:00
|
|
|
webrtc_fuzzer_test("neteq_rtp_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"neteq_rtp_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-09-04 05:43:17 -07:00
|
|
|
"../../api:array_view",
|
Revert of Enable GN check for webrtc/base (patchset #9 id:350001 of https://codereview.webrtc.org/2840453004/ )
Reason for revert:
It causes a Chromium build error:
ERROR at //third_party/webrtc/test/BUILD.gn:113:5: Can't load input file.
"//third_party/gflags",
Original issue's description:
> Reland of Enable GN check for webrtc/base (patchset #3 id:230001 of https://codereview.webrtc.org/2838683002/ )
>
> Reason for revert:
> Try to fix the webrtc/test/fuzzers issue and reland this CL because it
> contains lots of fixes for our BUILD.gn files.
>
> Original issue's description:
> > Revert of Enable GN check for webrtc/base (patchset #13 id:240001 of https://codereview.webrtc.org/2717083002/ )
> >
> > Reason for revert:
> > Breaks Chromium because in Chromium we import WebRTC with rtc_include_tests=false (https://bugs.chromium.org/p/chromium/issues/detail?id=713179#c6).
> >
> > Chromium uses webrtc/test/fuzzers and this CL adds test dependencies to neteq_rtc_fuzzer.
> >
> > Original issue's description:
> > > Enable GN check for webrtc/base
> > >
> > > It's not possible to enable it for the rtc_base_approved
> > > target but since a larger refactoring is ongoing for webrtc/base
> > > this CL doesn't attempt to fix that.
> > >
> > > Changes made:
> > > * Move webrtc/system_wrappers/include/stringize_macros.h into
> > > webrtc/base:rtc_base_approved_unittests (and corresponding
> > > unit test to rtc_base_approved_unittests).
> > > * Move md5digest.* from rtc_base_approved to rtc_base_test_utils target.
> > > * Move webrtc/system_wrappers/include/stringize_macros.h (+test) into
> > > webrtc/base.
> > > * Remove unused use include of webrtc/base/fileutils.h in
> > > webrtc/base/pathutils.cc
> > >
> > > BUG=webrtc:6828, webrtc:3806, webrtc:7480
> > > NOTRY=True
> > >
> > > Review-Url: https://codereview.webrtc.org/2717083002
> > > Cr-Commit-Position: refs/heads/master@{#17766}
> > > Committed: https://chromium.googlesource.com/external/webrtc/+/ed754e71ae8866db641677073274e86fe704eeac
> >
> > TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
> > # Not skipping CQ checks because original CL landed more than 1 days ago.
> > BUG=webrtc:6828, webrtc:3806, webrtc:7480
> > NOTRY=True
> >
> > Review-Url: https://codereview.webrtc.org/2838683002
> > Cr-Commit-Position: refs/heads/master@{#17849}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/11ed366c487a938815cd52ad2ab5467b0f90e1ae
>
> TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:6828, webrtc:3806, webrtc:7480
>
> Review-Url: https://codereview.webrtc.org/2840453004
> Cr-Commit-Position: refs/heads/master@{#17876}
> Committed: https://chromium.googlesource.com/external/webrtc/+/7054085e59c3123613cd0014bedb0fe91a56e26f
TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:6828, webrtc:3806, webrtc:7480
Review-Url: https://codereview.webrtc.org/2846483002
Cr-Commit-Position: refs/heads/master@{#17877}
2017-04-26 00:38:48 -07:00
|
|
|
"../../modules/audio_coding:neteq",
|
2017-06-01 04:47:20 -07:00
|
|
|
"../../modules/audio_coding:neteq_test_tools",
|
2017-04-28 00:59:45 -07:00
|
|
|
"../../modules/audio_coding:neteq_tools_minimal",
|
2016-10-05 02:27:42 -07:00
|
|
|
"../../modules/audio_coding:pcm16b",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
"../../rtc_base:rtc_base_tests_utils",
|
2016-10-05 02:27:42 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-20 10:38:56 +02:00
|
|
|
webrtc_fuzzer_test("neteq_signal_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"neteq_signal_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../api:array_view",
|
|
|
|
|
"../../modules/audio_coding:neteq",
|
|
|
|
|
"../../modules/audio_coding:neteq_test_tools",
|
|
|
|
|
"../../modules/audio_coding:neteq_tools_minimal",
|
|
|
|
|
"../../modules/audio_coding:pcm16b",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
"../../rtc_base:rtc_base_tests_utils",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-16 06:50:11 -07:00
|
|
|
webrtc_fuzzer_test("residual_echo_detector_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"residual_echo_detector_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../modules/audio_processing:audio_processing",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2017-05-16 06:50:11 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-16 05:05:39 -07:00
|
|
|
webrtc_fuzzer_test("sdp_parser_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"sdp_parser_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-12-06 11:23:19 +01:00
|
|
|
"../../api:libjingle_peerconnection_api",
|
2017-01-23 04:56:25 -08:00
|
|
|
"../../pc:libjingle_peerconnection",
|
2016-09-16 05:05:39 -07:00
|
|
|
]
|
|
|
|
|
seed_corpus = "corpora/sdp-corpus"
|
2018-05-22 13:23:36 +02:00
|
|
|
libfuzzer_options = [ "max_len=16384" ]
|
2016-09-16 05:05:39 -07:00
|
|
|
}
|
2016-07-06 08:02:00 -07:00
|
|
|
|
2016-09-16 05:05:39 -07:00
|
|
|
webrtc_fuzzer_test("stun_parser_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"stun_parser_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../p2p:rtc_p2p",
|
|
|
|
|
]
|
|
|
|
|
seed_corpus = "corpora/stun-corpus"
|
|
|
|
|
dict = "corpora/stun.tokens"
|
|
|
|
|
}
|
2016-07-06 08:02:00 -07:00
|
|
|
|
2016-09-16 05:05:39 -07:00
|
|
|
webrtc_fuzzer_test("stun_validator_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"stun_validator_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../p2p:rtc_p2p",
|
|
|
|
|
]
|
|
|
|
|
seed_corpus = "corpora/stun-corpus"
|
|
|
|
|
dict = "corpora/stun.tokens"
|
|
|
|
|
}
|
2016-07-07 05:52:24 -07:00
|
|
|
|
2016-09-16 05:05:39 -07:00
|
|
|
webrtc_fuzzer_test("pseudotcp_parser_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"pseudotcp_parser_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../p2p:rtc_p2p",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base",
|
2016-09-16 05:05:39 -07:00
|
|
|
]
|
2016-07-06 05:59:23 -07:00
|
|
|
}
|
2017-01-23 08:07:05 -08:00
|
|
|
|
|
|
|
|
webrtc_fuzzer_test("transport_feedback_packet_loss_tracker_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"transport_feedback_packet_loss_tracker_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-09-04 05:43:17 -07:00
|
|
|
"../../api:array_view",
|
2018-01-17 11:18:31 +01:00
|
|
|
"../../audio",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2017-01-23 08:07:05 -08:00
|
|
|
]
|
|
|
|
|
}
|
2018-01-16 12:50:34 +01:00
|
|
|
rtc_static_library("audio_processing_fuzzer_helper") {
|
2017-06-20 05:26:55 -07:00
|
|
|
sources = [
|
2018-01-16 12:50:34 +01:00
|
|
|
"audio_processing_fuzzer_helper.cc",
|
|
|
|
|
"audio_processing_fuzzer_helper.h",
|
2017-06-20 05:26:55 -07:00
|
|
|
]
|
|
|
|
|
deps = [
|
2018-01-16 12:50:34 +01:00
|
|
|
":fuzz_data_helper",
|
2018-04-12 22:44:09 +02:00
|
|
|
"../../api/audio:audio_frame_api",
|
2017-06-20 05:26:55 -07:00
|
|
|
"../../modules/audio_processing",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2018-06-18 12:54:17 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-06-20 05:26:55 -07:00
|
|
|
]
|
|
|
|
|
}
|
2017-12-07 09:21:36 +01:00
|
|
|
|
2018-01-16 12:50:34 +01:00
|
|
|
webrtc_fuzzer_test("audio_processing_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"audio_processing_configs_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_processing_fuzzer_helper",
|
2018-02-27 13:58:45 +01:00
|
|
|
"../../api/audio:aec3_factory",
|
2018-01-16 12:50:34 +01:00
|
|
|
"../../modules/audio_processing",
|
2018-02-23 13:18:29 +01:00
|
|
|
"../../modules/audio_processing/aec3",
|
2018-06-19 12:33:20 +02:00
|
|
|
"../../modules/audio_processing/aec_dump:mock_aec_dump",
|
|
|
|
|
"../../rtc_base:ptr_util",
|
2018-02-20 15:58:36 +01:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2018-03-07 14:18:56 +01:00
|
|
|
"../../rtc_base:safe_minmax",
|
2018-06-19 10:46:04 +02:00
|
|
|
"../../system_wrappers:field_trial_default",
|
2018-01-16 12:50:34 +01:00
|
|
|
]
|
2018-03-02 13:53:09 +01:00
|
|
|
seed_corpus = "corpora/audio_processing-corpus"
|
2018-01-16 12:50:34 +01:00
|
|
|
}
|
|
|
|
|
|
2017-12-07 09:21:36 +01:00
|
|
|
webrtc_fuzzer_test("comfort_noise_decoder_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"comfort_noise_decoder_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../api:array_view",
|
|
|
|
|
"../../modules/audio_coding:cng",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-16 14:06:13 +02:00
|
|
|
webrtc_fuzzer_test("rtp_frame_reference_finder_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"rtp_frame_reference_finder_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../modules/video_coding/",
|
|
|
|
|
"../../rtc_base:ptr_util",
|
|
|
|
|
"../../system_wrappers",
|
|
|
|
|
]
|
|
|
|
|
libfuzzer_options = [ "max_len=20000" ]
|
|
|
|
|
}
|
2018-05-17 13:34:53 +02:00
|
|
|
|
|
|
|
|
webrtc_fuzzer_test("frame_buffer2_fuzzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"frame_buffer2_fuzzer.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../modules/video_coding/",
|
|
|
|
|
"../../system_wrappers:system_wrappers",
|
|
|
|
|
]
|
|
|
|
|
libfuzzer_options = [ "max_len=10000" ]
|
|
|
|
|
}
|