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
e0ab846f
Commit
e0ab846f
authored
4 years ago
by
van Hauser
Browse files
Options
Downloads
Patches
Plain Diff
v3.00c
parent
df7c72fd
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
include/config.h
+1
-1
1 addition, 1 deletion
include/config.h
src/afl-cc.c
+24
-2
24 additions, 2 deletions
src/afl-cc.c
with
26 additions
and
4 deletions
README.md
+
1
−
1
View file @
e0ab846f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
!
[
Travis State
](
https://api.travis-ci.com/AFLplusplus/AFLplusplus.svg?branch=stable
)
!
[
Travis State
](
https://api.travis-ci.com/AFLplusplus/AFLplusplus.svg?branch=stable
)
Release Version:
[
2.68
c
](
https://github.com/AFLplusplus/AFLplusplus/releases
)
Release Version:
[
3.00
c
](
https://github.com/AFLplusplus/AFLplusplus/releases
)
Github Version: 3.00a
Github Version: 3.00a
...
...
This diff is collapsed.
Click to expand it.
include/config.h
+
1
−
1
View file @
e0ab846f
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
/* Version string: */
/* Version string: */
// c = release, d = volatile github dev, e = experimental branch
// c = release, d = volatile github dev, e = experimental branch
#define VERSION "++3.00
a
"
#define VERSION "++3.00
c
"
/******************************************************
/******************************************************
* *
* *
...
...
This diff is collapsed.
Click to expand it.
src/afl-cc.c
+
24
−
2
View file @
e0ab846f
...
@@ -69,6 +69,7 @@ enum {
...
@@ -69,6 +69,7 @@ enum {
INSTRUMENT_INSTRIM
=
3
,
INSTRUMENT_INSTRIM
=
3
,
INSTRUMENT_CFG
=
3
,
INSTRUMENT_CFG
=
3
,
INSTRUMENT_LTO
=
4
,
INSTRUMENT_LTO
=
4
,
INSTRUMENT_LLVMNATIVE
=
5
,
INSTRUMENT_OPT_CTX
=
8
,
INSTRUMENT_OPT_CTX
=
8
,
INSTRUMENT_OPT_NGRAM
=
16
INSTRUMENT_OPT_NGRAM
=
16
...
@@ -76,8 +77,9 @@ enum {
...
@@ -76,8 +77,9 @@ enum {
char
instrument_mode_string
[
18
][
18
]
=
{
char
instrument_mode_string
[
18
][
18
]
=
{
"DEFAULT"
,
"CLASSIC"
,
"PCGUARD"
,
"CFG"
,
"LTO"
,
""
,
""
,
""
,
"CTX"
,
""
,
"DEFAULT"
,
"CLASSIC"
,
"PCGUARD"
,
"CFG"
,
"LTO"
,
""
,
"PCGUARD-NATIVE"
,
""
,
""
,
""
,
""
,
""
,
""
,
"NGRAM"
,
""
""
,
"CTX"
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
"NGRAM"
,
""
};
};
...
@@ -580,6 +582,14 @@ static void edit_params(u32 argc, char **argv, char **envp) {
...
@@ -580,6 +582,14 @@ static void edit_params(u32 argc, char **argv, char **envp) {
#endif
#endif
#endif
#endif
}
else
if
(
instrument_mode
==
INSTRUMENT_LLVMNATIVE
)
{
#if LLVM_MAJOR >= 4
cc_params
[
cc_par_cnt
++
]
=
"-fsanitize-coverage=trace-pc-guard"
;
#else
FATAL
(
"pcguard instrumentation requires llvm 4.0.1+"
);
#endif
}
else
{
}
else
{
cc_params
[
cc_par_cnt
++
]
=
"-Xclang"
;
cc_params
[
cc_par_cnt
++
]
=
"-Xclang"
;
...
@@ -1162,6 +1172,18 @@ int main(int argc, char **argv, char **envp) {
...
@@ -1162,6 +1172,18 @@ int main(int argc, char **argv, char **envp) {
}
}
// this is a hidden option
if
(
strncasecmp
(
ptr
,
"llvmnative"
,
strlen
(
"llvmnative"
))
==
0
||
strncasecmp
(
ptr
,
"llvm-native"
,
strlen
(
"llvm-native"
))
==
0
)
{
if
(
!
instrument_mode
||
instrument_mode
==
INSTRUMENT_LLVMNATIVE
)
instrument_mode
=
INSTRUMENT_LLVMNATIVE
;
else
FATAL
(
"main instrumentation mode already set with %s"
,
instrument_mode_string
[
instrument_mode
]);
}
if
(
strncasecmp
(
ptr
,
"cfg"
,
strlen
(
"cfg"
))
==
0
||
if
(
strncasecmp
(
ptr
,
"cfg"
,
strlen
(
"cfg"
))
==
0
||
strncasecmp
(
ptr
,
"instrim"
,
strlen
(
"instrim"
))
==
0
)
{
strncasecmp
(
ptr
,
"instrim"
,
strlen
(
"instrim"
))
==
0
)
{
...
...
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