Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Add tuest fuzz target that does nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
janschrewe committed Apr 16, 2021
1 parent 3b3d3c9 commit 3117b7d
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .code-intelligence/campaigns/test_fuzz_target-d82fef0f.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "test_fuzz_target-d82fef0f",
"displayName": "test_fuzz_target",
"maxRunTime": "1800s",
"fuzzTargets": [
"test_fuzz_target-5ce53eb7"
],
"fuzzerRunConfigurations": [
{
"engine": "LIBFUZZER",
"sanitizer": "ADDRESS",
"numberOfJobs": 1,
"engineArguments": [
"-entropic=1"
]
},
{
"engine": "LIBFUZZER",
"sanitizer": "ADDRESS",
"numberOfJobs": 1,
"engineArguments": [
"-entropic=1",
"-use_value_profile=1"
]
}
],
"configuredTargets": [
{
"fuzzTarget": "test_fuzz_target-5ce53eb7",
"fuzzerRunConfigurations": [
{
"engine": "LIBFUZZER",
"sanitizer": "ADDRESS",
"numberOfJobs": 1,
"engineArguments": [
"-entropic=1"
]
},
{
"engine": "LIBFUZZER",
"sanitizer": "ADDRESS",
"numberOfJobs": 1,
"engineArguments": [
"-entropic=1",
"-use_value_profile=1"
]
}
]
}
]
}
18 changes: 18 additions & 0 deletions .code-intelligence/fuzz_targets/test_fuzz_target.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#include <iostream>
#include <stddef.h>
#include <stdint.h>
#include <tao/json.hpp>

// extern "C" int FUZZ_INIT_WITH_ARGS(int *argc, char ***argv) {
extern "C" int FUZZ_INIT()
{
// Add global setup code here - called once before fuzzing starts

return 0; // Non-zero return values are reserved for future use.
}

extern "C" int FUZZ( const char* Data, size_t Size )
{

return 0; // Non-zero return values are reserved for future use.
}
17 changes: 17 additions & 0 deletions .code-intelligence/fuzz_targets/test_fuzz_target.cpp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "test_fuzz_target-5ce53eb7",
"displayName": "test_fuzz_target",
"buildFlags": [
"-Ibuild/src/example/json",
"-Iinclude",
"-Iexternal/PEGTL/include",
"-Iinclude/tao/json/events",
"-Lbuild/src/example/json",
"-std=c++17"
],
"cApi": {
"api": {
"relativePath": ".code-intelligence/fuzz_targets/test_fuzz_target.cpp"
}
}
}

0 comments on commit 3117b7d

Please sign in to comment.