structured_headers_fuzzer.cc 550 B

12345678910111213141516171819
  1. // Copyright 2018 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. #include "net/http/structured_headers.h"
  5. namespace net {
  6. namespace structured_headers {
  7. extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
  8. base::StringPiece input(reinterpret_cast<const char*>(data), size);
  9. ParseItem(input);
  10. ParseListOfLists(input);
  11. ParseParameterisedList(input);
  12. return 0;
  13. }
  14. } // namespace structured_headers
  15. } // namespace net