| OLD | NEW |
| 1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
| 4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
| 5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("../../webrtc.gni") | 9 import("../../webrtc.gni") |
| 10 import("//build/config/features.gni") | 10 import("//build/config/features.gni") |
| 11 import("//testing/libfuzzer/fuzzer_test.gni") | 11 import("//testing/libfuzzer/fuzzer_test.gni") |
| 12 | 12 |
| 13 rtc_static_library("webrtc_fuzzer_main") { | 13 rtc_static_library("webrtc_fuzzer_main") { |
| 14 sources = [ | 14 sources = [ |
| 15 "webrtc_fuzzer_main.cc", | 15 "webrtc_fuzzer_main.cc", |
| 16 ] | 16 ] |
| 17 deps = [ | 17 deps = [ |
| 18 "../../base:rtc_base_approved", | |
| 19 "../../system_wrappers:field_trial_default", | 18 "../../system_wrappers:field_trial_default", |
| 20 "../../system_wrappers:metrics_default", | 19 "../../system_wrappers:metrics_default", |
| 21 "//testing/libfuzzer:libfuzzer_main", | 20 "//testing/libfuzzer:libfuzzer_main", |
| 22 ] | 21 ] |
| 23 } | 22 } |
| 24 | 23 |
| 25 template("webrtc_fuzzer_test") { | 24 template("webrtc_fuzzer_test") { |
| 26 fuzzer_test(target_name) { | 25 fuzzer_test(target_name) { |
| 27 forward_variables_from(invoker, "*") | 26 forward_variables_from(invoker, "*") |
| 28 deps += [ ":webrtc_fuzzer_main" ] | 27 deps += [ ":webrtc_fuzzer_main" ] |
| (...skipping 29 matching lines...) Expand all Loading... |
| 58 deps = [ | 57 deps = [ |
| 59 "../../modules/rtp_rtcp", | 58 "../../modules/rtp_rtcp", |
| 60 ] | 59 ] |
| 61 } | 60 } |
| 62 | 61 |
| 63 webrtc_fuzzer_test("vp8_qp_parser_fuzzer") { | 62 webrtc_fuzzer_test("vp8_qp_parser_fuzzer") { |
| 64 sources = [ | 63 sources = [ |
| 65 "vp8_qp_parser_fuzzer.cc", | 64 "vp8_qp_parser_fuzzer.cc", |
| 66 ] | 65 ] |
| 67 deps = [ | 66 deps = [ |
| 68 "../../modules/video_coding:video_coding_utility", | |
| 69 "../../modules/video_coding/", | 67 "../../modules/video_coding/", |
| 70 ] | 68 ] |
| 71 } | 69 } |
| 72 | 70 |
| 73 webrtc_fuzzer_test("h264_bitstream_parser_fuzzer") { | 71 webrtc_fuzzer_test("h264_bitstream_parser_fuzzer") { |
| 74 sources = [ | 72 sources = [ |
| 75 "h264_bitstream_parser_fuzzer.cc", | 73 "h264_bitstream_parser_fuzzer.cc", |
| 76 ] | 74 ] |
| 77 deps = [ | 75 deps = [ |
| 78 "../../common_video", | |
| 79 "../../modules/video_coding/", | 76 "../../modules/video_coding/", |
| 80 ] | 77 ] |
| 81 } | 78 } |
| 82 | 79 |
| 83 webrtc_fuzzer_test("flexfec_header_reader_fuzzer") { | 80 webrtc_fuzzer_test("flexfec_header_reader_fuzzer") { |
| 84 sources = [ | 81 sources = [ |
| 85 "flexfec_header_reader_fuzzer.cc", | 82 "flexfec_header_reader_fuzzer.cc", |
| 86 ] | 83 ] |
| 87 deps = [ | 84 deps = [ |
| 88 "../../base:rtc_base_approved", | 85 "../../modules/rtp_rtcp/", |
| 89 "../../modules/rtp_rtcp", | |
| 90 ] | 86 ] |
| 91 } | 87 } |
| 92 | 88 |
| 93 webrtc_fuzzer_test("flexfec_sender_fuzzer") { | 89 webrtc_fuzzer_test("flexfec_sender_fuzzer") { |
| 94 sources = [ | 90 sources = [ |
| 95 "flexfec_sender_fuzzer.cc", | 91 "flexfec_sender_fuzzer.cc", |
| 96 ] | 92 ] |
| 97 deps = [ | 93 deps = [ |
| 98 "../../modules/rtp_rtcp", | 94 "../../modules/rtp_rtcp/", |
| 99 "../../system_wrappers", | |
| 100 ] | 95 ] |
| 101 libfuzzer_options = [ "max_len=200" ] | 96 libfuzzer_options = [ "max_len=200" ] |
| 102 } | 97 } |
| 103 | 98 |
| 104 webrtc_fuzzer_test("ulpfec_header_reader_fuzzer") { | 99 webrtc_fuzzer_test("ulpfec_header_reader_fuzzer") { |
| 105 sources = [ | 100 sources = [ |
| 106 "ulpfec_header_reader_fuzzer.cc", | 101 "ulpfec_header_reader_fuzzer.cc", |
| 107 ] | 102 ] |
| 108 deps = [ | 103 deps = [ |
| 109 "../../base:rtc_base_approved", | 104 "../../modules/rtp_rtcp/", |
| 110 "../../modules/rtp_rtcp", | |
| 111 ] | 105 ] |
| 112 } | 106 } |
| 113 | 107 |
| 114 webrtc_fuzzer_test("ulpfec_generator_fuzzer") { | 108 webrtc_fuzzer_test("ulpfec_generator_fuzzer") { |
| 115 sources = [ | 109 sources = [ |
| 116 "ulpfec_generator_fuzzer.cc", | 110 "ulpfec_generator_fuzzer.cc", |
| 117 ] | 111 ] |
| 118 deps = [ | 112 deps = [ |
| 119 "../../base:rtc_base_approved", | 113 "../../modules/rtp_rtcp/", |
| 120 "../../modules/rtp_rtcp", | |
| 121 "../../modules/rtp_rtcp:rtp_rtcp_unittests", | |
| 122 ] | 114 ] |
| 123 } | 115 } |
| 124 | 116 |
| 125 webrtc_fuzzer_test("flexfec_receiver_fuzzer") { | 117 webrtc_fuzzer_test("flexfec_receiver_fuzzer") { |
| 126 sources = [ | 118 sources = [ |
| 127 "flexfec_receiver_fuzzer.cc", | 119 "flexfec_receiver_fuzzer.cc", |
| 128 ] | 120 ] |
| 129 deps = [ | 121 deps = [ |
| 130 "../../base:rtc_base_approved", | 122 "../../modules/rtp_rtcp/", |
| 131 "../../modules/rtp_rtcp", | |
| 132 ] | 123 ] |
| 133 libfuzzer_options = [ "max_len=2000" ] | 124 libfuzzer_options = [ "max_len=2000" ] |
| 134 } | 125 } |
| 135 | 126 |
| 136 webrtc_fuzzer_test("packet_buffer_fuzzer") { | 127 webrtc_fuzzer_test("packet_buffer_fuzzer") { |
| 137 sources = [ | 128 sources = [ |
| 138 "packet_buffer_fuzzer.cc", | 129 "packet_buffer_fuzzer.cc", |
| 139 ] | 130 ] |
| 140 deps = [ | 131 deps = [ |
| 141 "../../modules/video_coding", | 132 "../../modules/video_coding/", |
| 142 "../../system_wrappers", | |
| 143 ] | 133 ] |
| 144 libfuzzer_options = [ "max_len=2000" ] | 134 libfuzzer_options = [ "max_len=2000" ] |
| 145 } | 135 } |
| 146 | 136 |
| 147 webrtc_fuzzer_test("rtcp_receiver_fuzzer") { | 137 webrtc_fuzzer_test("rtcp_receiver_fuzzer") { |
| 148 sources = [ | 138 sources = [ |
| 149 "rtcp_receiver_fuzzer.cc", | 139 "rtcp_receiver_fuzzer.cc", |
| 150 ] | 140 ] |
| 151 deps = [ | 141 deps = [ |
| 152 "../../base:rtc_base_approved", | 142 "../../modules/rtp_rtcp/", |
| 153 "../../modules/rtp_rtcp", | |
| 154 "../../system_wrappers", | |
| 155 ] | 143 ] |
| 156 seed_corpus = "corpora/rtcp-corpus" | 144 seed_corpus = "corpora/rtcp-corpus" |
| 157 } | 145 } |
| 158 | 146 |
| 159 webrtc_fuzzer_test("rtp_packet_fuzzer") { | 147 webrtc_fuzzer_test("rtp_packet_fuzzer") { |
| 160 sources = [ | 148 sources = [ |
| 161 "rtp_packet_fuzzer.cc", | 149 "rtp_packet_fuzzer.cc", |
| 162 ] | 150 ] |
| 163 deps = [ | 151 deps = [ |
| 164 "../../modules/rtp_rtcp", | 152 "../../modules/rtp_rtcp/", |
| 165 ] | 153 ] |
| 166 seed_corpus = "corpora/rtp-corpus" | 154 seed_corpus = "corpora/rtp-corpus" |
| 167 } | 155 } |
| 168 | 156 |
| 169 webrtc_fuzzer_test("rtp_header_fuzzer") { | 157 webrtc_fuzzer_test("rtp_header_fuzzer") { |
| 170 sources = [ | 158 sources = [ |
| 171 "rtp_header_fuzzer.cc", | 159 "rtp_header_fuzzer.cc", |
| 172 ] | 160 ] |
| 173 deps = [ | 161 deps = [ |
| 174 "../../modules/rtp_rtcp", | 162 "../../modules/rtp_rtcp/", |
| 175 ] | 163 ] |
| 176 } | 164 } |
| 177 | 165 |
| 178 webrtc_fuzzer_test("congestion_controller_feedback_fuzzer") { | 166 webrtc_fuzzer_test("congestion_controller_feedback_fuzzer") { |
| 179 sources = [ | 167 sources = [ |
| 180 "congestion_controller_feedback_fuzzer.cc", | 168 "congestion_controller_feedback_fuzzer.cc", |
| 181 ] | 169 ] |
| 182 deps = [ | 170 deps = [ |
| 183 "../../logging:rtc_event_log_api", | |
| 184 "../../logging:rtc_event_log_impl", | 171 "../../logging:rtc_event_log_impl", |
| 185 "../../modules/congestion_controller", | 172 "../../modules/congestion_controller/", |
| 186 "../../modules/remote_bitrate_estimator", | |
| 187 "../../modules/rtp_rtcp", | |
| 188 ] | 173 ] |
| 189 } | 174 } |
| 190 | 175 |
| 191 rtc_static_library("audio_decoder_fuzzer") { | 176 rtc_static_library("audio_decoder_fuzzer") { |
| 192 sources = [ | 177 sources = [ |
| 193 "audio_decoder_fuzzer.cc", | 178 "audio_decoder_fuzzer.cc", |
| 194 "audio_decoder_fuzzer.h", | 179 "audio_decoder_fuzzer.h", |
| 195 ] | 180 ] |
| 196 deps = [ | |
| 197 "../..:webrtc_common", | |
| 198 "../../api/audio_codecs:audio_codecs_api", | |
| 199 "../../base:rtc_base_approved", | |
| 200 "../../modules/rtp_rtcp", | |
| 201 ] | |
| 202 } | 181 } |
| 203 | 182 |
| 204 webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") { | 183 webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") { |
| 205 sources = [ | 184 sources = [ |
| 206 "audio_decoder_ilbc_fuzzer.cc", | 185 "audio_decoder_ilbc_fuzzer.cc", |
| 207 ] | 186 ] |
| 208 deps = [ | 187 deps = [ |
| 209 ":audio_decoder_fuzzer", | 188 ":audio_decoder_fuzzer", |
| 210 "../../modules/audio_coding:ilbc", | 189 "../../modules/audio_coding:ilbc", |
| 211 ] | 190 ] |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 deps = [ | 247 deps = [ |
| 269 "../../media:media", | 248 "../../media:media", |
| 270 ] | 249 ] |
| 271 } | 250 } |
| 272 | 251 |
| 273 webrtc_fuzzer_test("neteq_rtp_fuzzer") { | 252 webrtc_fuzzer_test("neteq_rtp_fuzzer") { |
| 274 sources = [ | 253 sources = [ |
| 275 "neteq_rtp_fuzzer.cc", | 254 "neteq_rtp_fuzzer.cc", |
| 276 ] | 255 ] |
| 277 deps = [ | 256 deps = [ |
| 278 "../../base:rtc_base_approved", | |
| 279 "../../modules/audio_coding:neteq", | 257 "../../modules/audio_coding:neteq", |
| 280 "../../modules/audio_coding:neteq_test_minimal", | 258 "../../modules/audio_coding:neteq_test_minimal", |
| 281 "../../modules/audio_coding:neteq_unittest_tools", | |
| 282 "../../modules/audio_coding:pcm16b", | 259 "../../modules/audio_coding:pcm16b", |
| 283 "../../modules/rtp_rtcp", | 260 "../../modules/rtp_rtcp", |
| 284 ] | 261 ] |
| 285 } | 262 } |
| 286 | 263 |
| 287 webrtc_fuzzer_test("sdp_parser_fuzzer") { | 264 webrtc_fuzzer_test("sdp_parser_fuzzer") { |
| 288 sources = [ | 265 sources = [ |
| 289 "sdp_parser_fuzzer.cc", | 266 "sdp_parser_fuzzer.cc", |
| 290 ] | 267 ] |
| 291 deps = [ | 268 deps = [ |
| (...skipping 22 matching lines...) Expand all Loading... |
| 314 ] | 291 ] |
| 315 seed_corpus = "corpora/stun-corpus" | 292 seed_corpus = "corpora/stun-corpus" |
| 316 dict = "corpora/stun.tokens" | 293 dict = "corpora/stun.tokens" |
| 317 } | 294 } |
| 318 | 295 |
| 319 webrtc_fuzzer_test("pseudotcp_parser_fuzzer") { | 296 webrtc_fuzzer_test("pseudotcp_parser_fuzzer") { |
| 320 sources = [ | 297 sources = [ |
| 321 "pseudotcp_parser_fuzzer.cc", | 298 "pseudotcp_parser_fuzzer.cc", |
| 322 ] | 299 ] |
| 323 deps = [ | 300 deps = [ |
| 324 "../../base:rtc_base", | |
| 325 "../../p2p:rtc_p2p", | 301 "../../p2p:rtc_p2p", |
| 326 ] | 302 ] |
| 327 } | 303 } |
| 328 | 304 |
| 329 webrtc_fuzzer_test("transport_feedback_packet_loss_tracker_fuzzer") { | 305 webrtc_fuzzer_test("transport_feedback_packet_loss_tracker_fuzzer") { |
| 330 sources = [ | 306 sources = [ |
| 331 "transport_feedback_packet_loss_tracker_fuzzer.cc", | 307 "transport_feedback_packet_loss_tracker_fuzzer.cc", |
| 332 ] | 308 ] |
| 333 deps = [ | 309 deps = [ |
| 334 "../../base:rtc_base_approved", | |
| 335 "../../modules/rtp_rtcp", | 310 "../../modules/rtp_rtcp", |
| 336 "../../voice_engine", | 311 "../../voice_engine", |
| 337 ] | 312 ] |
| 338 } | 313 } |
| OLD | NEW |