bloaty/third_party/re2/util/fuzz.cc
Go to the documentation of this file.
1 // Copyright 2016 The RE2 Authors. All Rights Reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4 
5 #include <stddef.h>
6 #include <stdint.h>
7 #include <stdlib.h>
8 
9 // Entry point for libFuzzer.
10 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size);
11 
12 int main(int argc, char** argv) {
13  uint8_t data[32];
14  for (int i = 0; i < 32; i++) {
15  for (int j = 0; j < 32; j++) {
16  data[j] = random() & 0xFF;
17  }
19  }
20  return 0;
21 }
uint8_t
unsigned char uint8_t
Definition: stdint-msvc2008.h:78
data
char data[kBufferLength]
Definition: abseil-cpp/absl/strings/internal/str_format/float_conversion.cc:1006
stdint.h
LLVMFuzzerTestOneInput
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
Definition: sockaddr_utils_fuzzer_test.cc:29
main
int main(int argc, char **argv)
Definition: bloaty/third_party/re2/util/fuzz.cc:12
size
voidpf void uLong size
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
i
uint64_t i
Definition: abseil-cpp/absl/container/btree_benchmark.cc:230


grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:25