• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2022 Google LLC
2 //
3 // Use of this source code is governed by an MIT-style
4 // license that can be found in the LICENSE file or at
5 // https://opensource.org/licenses/MIT.
6 
7 #include <cstdint>
8 
9 #include "utf8_validity.h"
10 
LLVMFuzzerTestOneInput(const uint8_t * data,size_t size)11 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
12   utf8_range::IsStructurallyValid(
13       absl::string_view(reinterpret_cast<const char *>(data), size));
14   utf8_range::SpanStructurallyValid(
15       absl::string_view(reinterpret_cast<const char *>(data), size));
16   return 0;
17 }
18