mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
17 lines
531 B
17 lines
531 B
// Copyright 2022 Google LLC |
|
// |
|
// Use of this source code is governed by an MIT-style |
|
// license that can be found in the LICENSE file or at |
|
// https://opensource.org/licenses/MIT. |
|
|
|
#include <cstdint> |
|
|
|
#include "utf8_validity.h" |
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { |
|
utf8_range::IsStructurallyValid( |
|
absl::string_view(reinterpret_cast<const char *>(data), size)); |
|
utf8_range::SpanStructurallyValid( |
|
absl::string_view(reinterpret_cast<const char *>(data), size)); |
|
return 0; |
|
}
|
|
|