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

Side by Side Diff: media/formats/mp4/mp4_avcc_parser_fuzzer.cc

Issue 2401963003: Add a fuzzer target for MP4 AVCC record parsing (Closed)
Patch Set: condition target on proprietary codecs Created 4 years, 2 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 | « media/BUILD.gn ('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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Empty fuzzer that doesn't do anything. Used as test and documentation.
6
7 #include <stddef.h> 5 #include <stddef.h>
8 #include <stdint.h> 6 #include <stdint.h>
9 7
10 // Fuzzer entry point. 8 #include "base/logging.h"
9 #include "media/formats/mp4/box_definitions.h"
10
11 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { 11 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
12 // Run your code on data. 12 media::mp4::AVCDecoderConfigurationRecord().Parse(data, size);
13 return 0; 13 return 0;
14 } 14 }
15 15
16 // Environment is optional. 16 // For disabling noisy logging.
17 struct Environment { 17 struct Environment {
18 Environment() { 18 Environment() { logging::SetMinLogLevel(logging::LOG_FATAL); }
19 // Initialize your environment.
20 }
21 }; 19 };
22 20
23 Environment* env = new Environment(); 21 Environment* env = new Environment();
24
25
OLDNEW
« no previous file with comments | « media/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698