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
0c4f0dd4
Commit
0c4f0dd4
authored
2 years ago
by
vanhauser-thc
Browse files
Options
Downloads
Patches
Plain Diff
oss-fuzz fix for LLVMFuzzerTestOneInput driver
parent
b5f7f42c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/aflpp_driver/aflpp_driver.c
+4
-1
4 additions, 1 deletion
utils/aflpp_driver/aflpp_driver.c
with
4 additions
and
1 deletion
utils/aflpp_driver/aflpp_driver.c
+
4
−
1
View file @
0c4f0dd4
...
...
@@ -74,7 +74,10 @@ extern unsigned char *__afl_area_ptr;
extern
unsigned
int
__afl_map_size
;
// libFuzzer interface is thin, so we don't include any libFuzzer headers.
__attribute__
((
weak
))
int
LLVMFuzzerTestOneInput
(
const
uint8_t
*
Data
,
/* Using the weak attributed on LLVMFuzzerTestOneInput() breaks oss-fuzz but
on the other hand this is what Google needs to make LLVMFuzzerRunDriver()
work. Choose your poison Google! */
/*__attribute__((weak))*/
int
LLVMFuzzerTestOneInput
(
const
uint8_t
*
Data
,
size_t
Size
);
__attribute__
((
weak
))
int
LLVMFuzzerInitialize
(
int
*
argc
,
char
***
argv
);
__attribute__
((
weak
))
int
LLVMFuzzerRunDriver
(
...
...
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