-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
build | ||
afl-build | ||
.vscode | ||
site/ | ||
pdfs/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
OUTPUTS | ||
DATA | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#simple test | ||
id jojo | ||
path DATA/file0 default | ||
permission perm | ||
install | ||
uninstall | ||
display | ||
clear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
id j | ||
id jojo | ||
clear | ||
id jojo | ||
path DATA/file0 default | ||
path DATA/file1 conf | ||
path DATA/file2 data | ||
path DATA/file3 exec | ||
path DATA/file4 http | ||
path DATA/file5 icon | ||
path DATA/file6 id | ||
path DATA/file7 lib | ||
path DATA/file8 public | ||
path DATA/dir1 plug | ||
install | ||
uninstall | ||
display | ||
clear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
path DATA/file2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
rootdir=$(realpath $(dirname $0)) | ||
builddir=$rootdir/afl-build | ||
afldir=$rootdir/afl | ||
|
||
export AFL_USE_ASAN=1 | ||
#export AFL_USE_MSAN=1 | ||
export AFL_USE_UBSAN=1 | ||
export AFL_USE_CFISAN=1 | ||
#export AFL_USE_TSAN=1 | ||
export AFL_USE_LSAN=1 | ||
|
||
mkdir -p $builddir | ||
cd $builddir || exit 1 | ||
|
||
cmake .. \ | ||
-DCMAKE_C_COMPILER=afl-cc \ | ||
-DWITH_SYSTEMD=ON \ | ||
-DWITH_SMACK=ON \ | ||
-DWITH_SELINUX=ON \ | ||
-DSIMULATE_CYNAGORA=ON \ | ||
-DSIMULATE_SMACK=ON \ | ||
-DSIMULATE_SELINUX=ON \ | ||
-DFORTIFY=ON \ | ||
-DCOMPILE_TEST=ON \ | ||
-DDEBUG=ON | ||
|
||
make | ||
|
||
cd $afldir | ||
|
||
prog=$builddir/src/tests/slmc-test-simcyn-simsma | ||
#prog=$builddir/src/tests/slmc-test-simcyn-simsel | ||
|
||
afl-fuzz -i INPUTS -o OUTPUTS -- $prog | ||
|