1 // Copyright 2018 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 #ifdef UNSAFE_BUFFERS_BUILD 6 // TODO(crbug.com/40284755): Remove this and spanify to fix the errors. 7 #pragma allow_unsafe_buffers 8 #endif 9 10 #include "net/http/structured_headers.h" 11 12 #include <string_view> 13 14 namespace net { 15 namespace structured_headers { 16 LLVMFuzzerTestOneInput(const uint8_t * data,size_t size)17extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { 18 std::string_view input(reinterpret_cast<const char*>(data), size); 19 ParseItem(input); 20 ParseListOfLists(input); 21 ParseParameterisedList(input); 22 return 0; 23 } 24 25 } // namespace structured_headers 26 } // namespace net 27