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

Side by Side Diff: webrtc/test/fuzzers/webrtc_fuzzer_main.cc

Issue 1463523002: Implement fuzzing of VP9 depacketization. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: added sanitizers.gni for default values Created 5 years 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 | « webrtc/test/fuzzers/vp9_depacketizer_fuzzer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10 #include "webrtc/base/logging.h"
11
12 // This file is intended to provide a common interface for fuzzing functions, so
13 // whether we're running fuzzing under libFuzzer or DrFuzz the webrtc functions
14 // can remain the same.
15 // TODO(pbos): Implement FuzzOneInput() for more than one platform (currently
16 // libFuzzer).
17
18 namespace webrtc {
19 extern void FuzzOneInput(const uint8_t* data, size_t size);
20 } // namespace webrtc
21
22 extern "C" int LLVMFuzzerTestOneInput(const unsigned char *data, size_t size) {
23 // TODO(pbos): Figure out whether this can be moved to common startup code and
24 // not be done per-input.
25 // Remove default logging to prevent huge slowdowns.
26 rtc::LogMessage::LogToDebug(rtc::LS_NONE);
27 webrtc::FuzzOneInput(data, size);
28 return 0;
29 }
OLDNEW
« no previous file with comments | « webrtc/test/fuzzers/vp9_depacketizer_fuzzer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698