Debian Codegraph @

extra/protobuf/protobuf-24.4/third_party/utf8_range/fuzz/utf8_validity_fuzzer.cc

raw
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 "utf8_validity.h"
8
9 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
10 utf8_range::IsStructurallyValid(
11 absl::string_view(reinterpret_cast<const char *>(data), size));
12 utf8_range::SpanStructurallyValid(
13 absl::string_view(reinterpret_cast<const char *>(data), size));
14 return 0;
15 }