blob: 725cad876e79788d52b54e81d2a36b1d97d6183c [file] [log] [blame]
Paul Wankadiabfa58642016-05-24 18:36:12 +10001// 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.
10extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size);
11
12int main(int argc, char** argv) {
Paul Wankadia3a8436a2023-02-20 10:29:01 -080013 uint8_t data[4096];
14 for (int i = 0; i < 4096; i++) {
15 for (int j = 0; j < 4096; j++) {
Paul Wankadiabfa58642016-05-24 18:36:12 +100016 data[j] = random() & 0xFF;
17 }
Paul Wankadia3a8436a2023-02-20 10:29:01 -080018 LLVMFuzzerTestOneInput(data, 4096);
Paul Wankadiabfa58642016-05-24 18:36:12 +100019 }
20 return 0;
21}