vasilvv | a7300b8 | 2020-04-20 20:32:51 -0400 | [diff] [blame] | 1 | // 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 | |
| 10 | extern "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 | } |