You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
430 B
14 lines
430 B
// Copyright 2017 Google Inc. All Rights Reserved.
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
#include "my_api.h"
|
|
|
|
#include <string>
|
|
|
|
// Simple fuzz target for DoStuff().
|
|
// See http://libfuzzer.info for details.
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|
std::string str(reinterpret_cast<const char *>(data), size);
|
|
DoStuff(str); // Disregard the output.
|
|
return 0;
|
|
}
|