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
73dd6d86
Commit
73dd6d86
authored
4 years ago
by
van Hauser
Browse files
Options
Downloads
Patches
Plain Diff
dont fail with ASAN_BUILD
parent
79c98731
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
GNUmakefile
+2
-2
2 additions, 2 deletions
GNUmakefile
GNUmakefile.gcc_plugin
+1
-1
1 addition, 1 deletion
GNUmakefile.gcc_plugin
GNUmakefile.llvm
+1
-1
1 addition, 1 deletion
GNUmakefile.llvm
utils/afl_proxy/afl-proxy.c
+1
-1
1 addition, 1 deletion
utils/afl_proxy/afl-proxy.c
with
5 additions
and
5 deletions
GNUmakefile
+
2
−
2
View file @
73dd6d86
...
@@ -512,7 +512,7 @@ code-format:
...
@@ -512,7 +512,7 @@ code-format:
ifndef
AFL_NO_X86
ifndef
AFL_NO_X86
test_build
:
afl-cc afl-gcc afl-as afl-showmap
test_build
:
afl-cc afl-gcc afl-as afl-showmap
@
echo
"[*] Testing the CC wrapper afl-cc and its instrumentation output..."
@
echo
"[*] Testing the CC wrapper afl-cc and its instrumentation output..."
@
unset
AFL_MAP_SIZE AFL_USE_UBSAN AFL_USE_CFISAN AFL_USE_ASAN AFL_USE_MSAN AFL_CC
;
AFL_INST_RATIO
=
100
AFL_PATH
=
.
./afl-cc test-instr.c
-o
test-instr 2>&1
||
(
echo
"Oops, afl-cc failed"
;
exit
1
)
@
unset
AFL_MAP_SIZE AFL_USE_UBSAN AFL_USE_CFISAN AFL_USE_ASAN AFL_USE_MSAN AFL_CC
;
ASAN_OPTIONS
=
detect_leaks
=
0
AFL_INST_RATIO
=
100
AFL_PATH
=
.
./afl-cc test-instr.c
-o
test-instr 2>&1
||
(
echo
"Oops, afl-cc failed"
;
exit
1
)
ASAN_OPTIONS
=
detect_leaks
=
0 ./afl-showmap
-m
none
-q
-o
.test-instr0 ./test-instr < /dev/null
ASAN_OPTIONS
=
detect_leaks
=
0 ./afl-showmap
-m
none
-q
-o
.test-instr0 ./test-instr < /dev/null
echo
1 |
ASAN_OPTIONS
=
detect_leaks
=
0 ./afl-showmap
-m
none
-q
-o
.test-instr1 ./test-instr
echo
1 |
ASAN_OPTIONS
=
detect_leaks
=
0 ./afl-showmap
-m
none
-q
-o
.test-instr1 ./test-instr
@
rm
-f
test-instr
@
rm
-f
test-instr
...
@@ -520,7 +520,7 @@ test_build: afl-cc afl-gcc afl-as afl-showmap
...
@@ -520,7 +520,7 @@ test_build: afl-cc afl-gcc afl-as afl-showmap
@
echo
@
echo
@
echo
"[+] All right, the instrumentation of afl-cc seems to be working!"
@
echo
"[+] All right, the instrumentation of afl-cc seems to be working!"
@
echo
"[*] Testing the CC wrapper afl-gcc and its instrumentation output..."
@
echo
"[*] Testing the CC wrapper afl-gcc and its instrumentation output..."
@
unset
AFL_MAP_SIZE AFL_USE_UBSAN AFL_USE_CFISAN AFL_USE_ASAN AFL_USE_MSAN AFL_CC
;
AFL_INST_RATIO
=
100
AFL_PATH
=
.
./afl-gcc test-instr.c
-o
test-instr 2>&1
||
(
echo
"Oops, afl-gcc failed"
;
exit
1
)
@
unset
AFL_MAP_SIZE AFL_USE_UBSAN AFL_USE_CFISAN AFL_USE_ASAN AFL_USE_MSAN AFL_CC
;
ASAN_OPTIONS
=
detect_leaks
=
0
AFL_INST_RATIO
=
100
AFL_PATH
=
.
./afl-gcc test-instr.c
-o
test-instr 2>&1
||
(
echo
"Oops, afl-gcc failed"
;
exit
1
)
ASAN_OPTIONS
=
detect_leaks
=
0 ./afl-showmap
-m
none
-q
-o
.test-instr0 ./test-instr < /dev/null
ASAN_OPTIONS
=
detect_leaks
=
0 ./afl-showmap
-m
none
-q
-o
.test-instr0 ./test-instr < /dev/null
echo
1 |
ASAN_OPTIONS
=
detect_leaks
=
0 ./afl-showmap
-m
none
-q
-o
.test-instr1 ./test-instr
echo
1 |
ASAN_OPTIONS
=
detect_leaks
=
0 ./afl-showmap
-m
none
-q
-o
.test-instr1 ./test-instr
@
rm
-f
test-instr
@
rm
-f
test-instr
...
...
This diff is collapsed.
Click to expand it.
GNUmakefile.gcc_plugin
+
1
−
1
View file @
73dd6d86
...
@@ -138,7 +138,7 @@ afl-common.o: ./src/afl-common.c
...
@@ -138,7 +138,7 @@ afl-common.o: ./src/afl-common.c
.PHONY: test_build
.PHONY: test_build
test_build: $(PROGS)
test_build: $(PROGS)
@echo "[*] Testing the CC wrapper and instrumentation output..."
@echo "[*] Testing the CC wrapper and instrumentation output..."
unset AFL_USE_ASAN AFL_USE_MSAN; AFL_QUIET=1 AFL_INST_RATIO=100 AFL_PATH=. AFL_CC=$(CC) ./afl-gcc-fast $(CFLAGS) $(CPPFLAGS) ./test-instr.c -o test-instr $(LDFLAGS)
unset AFL_USE_ASAN AFL_USE_MSAN;
ASAN_OPTIONS=detect_leaks=0
AFL_QUIET=1 AFL_INST_RATIO=100 AFL_PATH=. AFL_CC=$(CC) ./afl-gcc-fast $(CFLAGS) $(CPPFLAGS) ./test-instr.c -o test-instr $(LDFLAGS)
ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr0 ./test-instr </dev/null
ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr0 ./test-instr </dev/null
echo 1 | ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr1 ./test-instr
echo 1 | ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr1 ./test-instr
@rm -f test-instr
@rm -f test-instr
...
...
This diff is collapsed.
Click to expand it.
GNUmakefile.llvm
+
1
−
1
View file @
73dd6d86
...
@@ -452,7 +452,7 @@ document:
...
@@ -452,7 +452,7 @@ document:
.PHONY: test_build
.PHONY: test_build
test_build: $(PROGS)
test_build: $(PROGS)
@echo "[*] Testing the CC wrapper and instrumentation output..."
@echo "[*] Testing the CC wrapper and instrumentation output..."
unset AFL_USE_ASAN AFL_USE_MSAN AFL_INST_RATIO; AFL_QUIET=1 AFL_PATH=. AFL_LLVM_LAF_ALL=1 ./afl-cc $(CFLAGS) $(CPPFLAGS) ./test-instr.c -o test-instr $(LDFLAGS)
unset AFL_USE_ASAN AFL_USE_MSAN AFL_INST_RATIO;
ASAN_OPTIONS=detect_leaks=0
AFL_QUIET=1 AFL_PATH=. AFL_LLVM_LAF_ALL=1 ./afl-cc $(CFLAGS) $(CPPFLAGS) ./test-instr.c -o test-instr $(LDFLAGS)
ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr0 ./test-instr < /dev/null
ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr0 ./test-instr < /dev/null
echo 1 | ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr1 ./test-instr
echo 1 | ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr1 ./test-instr
@rm -f test-instr
@rm -f test-instr
...
...
This diff is collapsed.
Click to expand it.
utils/afl_proxy/afl-proxy.c
+
1
−
1
View file @
73dd6d86
...
@@ -213,7 +213,7 @@ int main(int argc, char *argv[]) {
...
@@ -213,7 +213,7 @@ int main(int argc, char *argv[]) {
u32
len
;
u32
len
;
/* here you specify the map size you need that you are reporting to
/* here you specify the map size you need that you are reporting to
afl-fuzz. */
afl-fuzz.
Any value is fine as long as it can be divided by 8.
*/
__afl_map_size
=
MAP_SIZE
;
// default is 65536
__afl_map_size
=
MAP_SIZE
;
// default is 65536
/* then we initialize the shared memory map and start the forkserver */
/* then we initialize the shared memory map and start the forkserver */
...
...
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