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
c7ced560
Unverified
Commit
c7ced560
authored
2 years ago
by
van Hauser
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1747 from AFLplusplus/dev
push to stable
parents
8e1df8e5
287128a1
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
GNUmakefile
+8
-3
8 additions, 3 deletions
GNUmakefile
README.md
+1
-1
1 addition, 1 deletion
README.md
include/cmplog.h
+1
-1
1 addition, 1 deletion
include/cmplog.h
src/afl-fuzz-redqueen.c
+4
-4
4 additions, 4 deletions
src/afl-fuzz-redqueen.c
with
14 additions
and
9 deletions
GNUmakefile
+
8
−
3
View file @
c7ced560
...
@@ -100,8 +100,13 @@ else
...
@@ -100,8 +100,13 @@ else
LDFLAGS
+=
$(
SDK_LD
)
LDFLAGS
+=
$(
SDK_LD
)
endif
endif
COMPILER_TYPE
=
$(
shell
$(
CC
)
--version
|grep
"Free Software Foundation"
)
ifneq
"$(COMPILER_TYPE)" ""
#$(info gcc is being used)
CFLAGS_OPT
+=
-Wno-error
=
format-truncation
-Wno-format-truncation
endif
ifeq
"$(SYS)" "SunOS"
ifeq
"$(SYS)" "SunOS"
CFLAGS_OPT
+=
-Wno-format-truncation
LDFLAGS
=
-lkstat
-lrt
-lsocket
-lnsl
LDFLAGS
=
-lkstat
-lrt
-lsocket
-lnsl
endif
endif
...
@@ -139,13 +144,13 @@ endif
...
@@ -139,13 +144,13 @@ endif
ifdef
DEBUG
ifdef
DEBUG
$(info
Compiling
DEBUG
version
of
binaries)
$(info
Compiling
DEBUG
version
of
binaries)
override
CFLAGS
+=
-ggdb3
-O0
-Wall
-Wextra
-Werror
-Wno-error
=
format-truncation
=
$(
CFLAGS_OPT
)
override
CFLAGS
+=
-ggdb3
-O0
-Wall
-Wextra
-Werror
$(
CFLAGS_OPT
)
else
else
CFLAGS
?=
-O2
$(
CFLAGS_OPT
)
# -funroll-loops is slower on modern compilers
CFLAGS
?=
-O2
$(
CFLAGS_OPT
)
# -funroll-loops is slower on modern compilers
endif
endif
override
CFLAGS
+=
-g
-Wno-pointer-sign
-Wno-variadic-macros
-Wall
-Wextra
-Wno-pointer-arith
\
override
CFLAGS
+=
-g
-Wno-pointer-sign
-Wno-variadic-macros
-Wall
-Wextra
-Wno-pointer-arith
\
-fPIC
-I
include/
-DAFL_PATH
=
\"
$(
HELPER_PATH
)
\"
-Wno-format-truncation
\
-fPIC
-I
include/
-DAFL_PATH
=
\"
$(
HELPER_PATH
)
\"
\
-DBIN_PATH
=
\"
$(
BIN_PATH
)
\"
-DDOC_PATH
=
\"
$(
DOC_PATH
)
\"
-DBIN_PATH
=
\"
$(
BIN_PATH
)
\"
-DDOC_PATH
=
\"
$(
DOC_PATH
)
\"
# -fstack-protector
# -fstack-protector
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
c7ced560
# American Fuzzy Lop plus plus (AFL++)
# American Fuzzy Lop plus plus (AFL++)
<img
align=
"right"
src=
"https://raw.githubusercontent.com/AFLplusplus/Website/ma
ster
/static/aflpp_bg.svg"
alt=
"AFL++ logo"
width=
"250"
heigh=
"250"
>
<img
align=
"right"
src=
"https://raw.githubusercontent.com/AFLplusplus/Website/ma
in
/static/aflpp_bg.svg"
alt=
"AFL++ logo"
width=
"250"
heigh=
"250"
>
Release version:
[
4.06c
](
https://github.com/AFLplusplus/AFLplusplus/releases
)
Release version:
[
4.06c
](
https://github.com/AFLplusplus/AFLplusplus/releases
)
...
...
This diff is collapsed.
Click to expand it.
include/cmplog.h
+
1
−
1
View file @
c7ced560
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#define CMP_MAP_W 65536
#define CMP_MAP_W 65536
#define CMP_MAP_H 32
#define CMP_MAP_H 32
#define CMP_MAP_RTN_H (CMP_MAP_H /
4
)
#define CMP_MAP_RTN_H (CMP_MAP_H /
2
)
#define SHAPE_BYTES(x) (x + 1)
#define SHAPE_BYTES(x) (x + 1)
...
...
This diff is collapsed.
Click to expand it.
src/afl-fuzz-redqueen.c
+
4
−
4
View file @
c7ced560
...
@@ -379,7 +379,7 @@ static u8 colorization(afl_state_t *afl, u8 *buf, u32 len,
...
@@ -379,7 +379,7 @@ static u8 colorization(afl_state_t *afl, u8 *buf, u32 len,
}
}
if
(
++
afl
->
stage_cur
%
screen_update
==
0
)
{
show_stats
(
afl
);
};
if
(
unlikely
(
++
afl
->
stage_cur
%
screen_update
==
0
)
)
{
show_stats
(
afl
);
};
}
}
...
@@ -790,7 +790,7 @@ static u8 cmp_extend_encoding(afl_state_t *afl, struct cmp_header *h,
...
@@ -790,7 +790,7 @@ static u8 cmp_extend_encoding(afl_state_t *afl, struct cmp_header *h,
u32
its_len
=
MIN
(
len
-
idx
,
taint_len
);
u32
its_len
=
MIN
(
len
-
idx
,
taint_len
);
if
(
afl
->
fsrv
.
total_execs
-
last_update
>
screen_update
)
{
if
(
unlikely
(
afl
->
fsrv
.
total_execs
-
last_update
>
screen_update
)
)
{
show_stats
(
afl
);
show_stats
(
afl
);
last_update
=
afl
->
fsrv
.
total_execs
;
last_update
=
afl
->
fsrv
.
total_execs
;
...
@@ -1455,7 +1455,7 @@ static u8 cmp_extend_encodingN(afl_state_t *afl, struct cmp_header *h,
...
@@ -1455,7 +1455,7 @@ static u8 cmp_extend_encodingN(afl_state_t *afl, struct cmp_header *h,
u32
taint_len
,
u8
*
orig_buf
,
u8
*
buf
,
u8
*
cbuf
,
u32
taint_len
,
u8
*
orig_buf
,
u8
*
buf
,
u8
*
cbuf
,
u32
len
,
u8
do_reverse
,
u8
lvl
,
u8
*
status
)
{
u32
len
,
u8
do_reverse
,
u8
lvl
,
u8
*
status
)
{
if
(
afl
->
fsrv
.
total_execs
-
last_update
>
screen_update
)
{
if
(
unlikely
(
afl
->
fsrv
.
total_execs
-
last_update
>
screen_update
)
)
{
show_stats
(
afl
);
show_stats
(
afl
);
last_update
=
afl
->
fsrv
.
total_execs
;
last_update
=
afl
->
fsrv
.
total_execs
;
...
@@ -1952,7 +1952,7 @@ static u8 rtn_extend_encoding(afl_state_t *afl, u8 entry,
...
@@ -1952,7 +1952,7 @@ static u8 rtn_extend_encoding(afl_state_t *afl, u8 entry,
// (void)(changed_val);
// (void)(changed_val);
// #endif
// #endif
if
(
afl
->
fsrv
.
total_execs
-
last_update
>
screen_update
)
{
if
(
unlikely
(
afl
->
fsrv
.
total_execs
-
last_update
>
screen_update
)
)
{
show_stats
(
afl
);
show_stats
(
afl
);
last_update
=
afl
->
fsrv
.
total_execs
;
last_update
=
afl
->
fsrv
.
total_execs
;
...
...
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