Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AFLplusplus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ulf Kargén
AFLplusplus
Commits
2adf5aac
Commit
2adf5aac
authored
2 years ago
by
vanhauser-thc
Browse files
Options
Downloads
Patches
Plain Diff
libfuzzer driver nits
parent
f756734a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dynamic_list.txt
+1
-0
1 addition, 0 deletions
dynamic_list.txt
utils/aflpp_driver/aflpp_driver.c
+18
-0
18 additions, 0 deletions
utils/aflpp_driver/aflpp_driver.c
with
19 additions
and
0 deletions
dynamic_list.txt
+
1
−
0
View file @
2adf5aac
...
@@ -54,4 +54,5 @@
...
@@ -54,4 +54,5 @@
"__sanitizer_cov_trace_pc_guard";
"__sanitizer_cov_trace_pc_guard";
"__sanitizer_cov_trace_pc_guard_init";
"__sanitizer_cov_trace_pc_guard_init";
"__sanitizer_cov_trace_switch";
"__sanitizer_cov_trace_switch";
"LLVMFuzzerTestOneInput";
};
};
This diff is collapsed.
Click to expand it.
utils/aflpp_driver/aflpp_driver.c
+
18
−
0
View file @
2adf5aac
...
@@ -33,6 +33,11 @@ $ afl-fuzz -i in -o out -- ./test_fuzzer
...
@@ -33,6 +33,11 @@ $ afl-fuzz -i in -o out -- ./test_fuzzer
*/
*/
#ifdef __cplusplus
extern
"C"
{
#endif
#include
<assert.h>
#include
<assert.h>
#include
<errno.h>
#include
<errno.h>
#include
<stdarg.h>
#include
<stdarg.h>
...
@@ -260,6 +265,13 @@ static int ExecuteFilesOnyByOne(int argc, char **argv,
...
@@ -260,6 +265,13 @@ static int ExecuteFilesOnyByOne(int argc, char **argv,
__attribute__
((
weak
))
int
main
(
int
argc
,
char
**
argv
)
{
__attribute__
((
weak
))
int
main
(
int
argc
,
char
**
argv
)
{
if
(
!
LLVMFuzzerTestOneInput
)
{
fprintf
(
stderr
,
"Error: function LLVMFuzzerTestOneInput() not found!
\n
"
);
abort
();
}
if
(
argc
<
2
||
strncmp
(
argv
[
1
],
"-h"
,
2
)
==
0
)
if
(
argc
<
2
||
strncmp
(
argv
[
1
],
"-h"
,
2
)
==
0
)
printf
(
printf
(
"============================== INFO ================================
\n
"
"============================== INFO ================================
\n
"
...
@@ -409,3 +421,9 @@ __attribute__((weak)) int LLVMFuzzerRunDriver(
...
@@ -409,3 +421,9 @@ __attribute__((weak)) int LLVMFuzzerRunDriver(
}
}
#ifdef __cplusplus
}
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment