blob: e1efd988bb952b7f4a900bb17c5099e37bffc2ac [file] [log] [blame]
vasilvva7300b82020-04-20 20:32:51 -04001// Copyright 2020 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include <sstream>
6#include <string>
7
8#include "net/third_party/quiche/src/quic/core/crypto/certificate_view.h"
9
10extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
11 std::string input(reinterpret_cast<const char*>(data), size);
12 std::stringstream stream(input);
13
14 quic::CertificateView::LoadPemFromStream(&stream);
15 stream.seekg(0);
16 quic::CertificatePrivateKey::LoadPemFromStream(&stream);
17 return 0;
18}