1 // Copyright 2015 The Chromium Authors 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 <stddef.h> 6 #include <stdint.h> 7 8 #include "net/third_party/quiche/src/quiche/quic/core/crypto/crypto_framer.h" 9 10 // Entry point for LibFuzzer. LLVMFuzzerTestOneInput(const uint8_t * data,size_t size)11extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { 12 absl::string_view crypto_input(reinterpret_cast<const char*>(data), size); 13 std::unique_ptr<quic::CryptoHandshakeMessage> handshake_message( 14 quic::CryptoFramer::ParseMessage(crypto_input)); 15 16 return 0; 17 } 18