blob: e7af5346a2eac64c82e72f4ea9ff5e42463b669c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Test fuzzer that when built successfully proves that fuzzable_proto_library
// is working. Building this fuzzer without using fuzzable_proto_library will
// fail because of test_fuzzer_input.proto
#include <iostream>
#include "third_party/libprotobuf-mutator/src/src/libfuzzer/libfuzzer_macro.h"
#include "third_party/libprotobuf-mutator/test_fuzzer/test_fuzzer_input.pb.h"
DEFINE_PROTO_FUZZER(const lpm_test_fuzzer::TestFuzzerInput& input) {
std::cout << input.imported().imported_publicly().input() << std::endl;
}
|