Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zafl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
zafl
Commits
f96217b3
Commit
f96217b3
authored
6 years ago
by
Anh Nguyen-Tuong
Browse files
Options
Downloads
Patches
Plain Diff
Script to batch run gathering of stats
parent
3805de50
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/bench/binutils.spec
+12
-0
12 additions, 0 deletions
test/bench/binutils.spec
test/bench/run-all.sh
+35
-0
35 additions, 0 deletions
test/bench/run-all.sh
test/bench/setup_afl.sh
+12
-2
12 additions, 2 deletions
test/bench/setup_afl.sh
with
59 additions
and
2 deletions
test/bench/binutils.spec
+
12
−
0
View file @
f96217b3
tools="aflgcc zafl dyninst qemu"
#binutils_binaries="size strings readelf objdump cxxfilt ar"
binutils_binaries="objdump cxxfilt ar strip-new nm-new"
binutils_binaries="size readelf strings cxxfilt nm-new strip-new"
binutils_binaries="nm-new strip-new"
# specify how to run under afl
declare -A fuzz_map
fuzz_map["size"]="@@"
fuzz_map["objdump"]="-d @@"
fuzz_map["readelf"]="-a @@"
fuzz_map["strings"]=""
fuzz_map["cxxfilt"]=""
fuzz_map["nm-new"]="-a @@"
fuzz_map["strip-new"]="@@"
This diff is collapsed.
Click to expand it.
test/bench/run-all.sh
0 → 100755
+
35
−
0
View file @
f96217b3
#!/bin/bash
SCRIPT
=
$(
readlink
-f
$0
)
MYDIR
=
$(
dirname
$SCRIPT
)
cd
$MYDIR
source
binutils.spec
echo
"Evaluate
$binutils_binaries
"
AFL_TIMEOUT
=
3600
EPOCH_TIMEOUT
=
3800
./setup_afl.sh
for
b
in
$binutils_binaries
do
echo
"fuzz_map for
$b
:
${
fuzz_map
[
$b
]
}
"
cd
$MYDIR
/
${
b
}
_aflgcc
nohup timeout
$AFL_TIMEOUT
afl-fuzz
-i
in
-o
out
--
./
${
b
}
.aflgcc
${
fuzz_map
[
$b
]
}
&
cd
$MYDIR
/
${
b
}
_zafl
nohup timeout
$AFL_TIMEOUT
afl-fuzz
-i
in
-o
out
--
./
${
b
}
.zafl
${
fuzz_map
[
$b
]
}
&
cd
$MYDIR
/
${
b
}
_dyninst
nohup timeout
$AFL_TIMEOUT
afl-fuzz
-i
in
-o
out
--
./
${
b
}
.dyninst
${
fuzz_map
[
$b
]
}
&
cd
$MYDIR
/
${
b
}
_qemu
nohup timeout
$AFL_TIMEOUT
afl-fuzz
-i
in
-o
out
-Q
--
./
${
b
}
.qemu
${
fuzz_map
[
$b
]
}
&
sleep
$EPOCH_TIMEOUT
grep
execs
${
b
}
_
*
/out/fuzzer_stats
done
This diff is collapsed.
Click to expand it.
test/bench/setup_afl.sh
+
12
−
2
View file @
f96217b3
tools
=
"aflgcc zafl dyninst qemu"
binutils_binaries
=
"size strings readelf strip-new nm-new"
#!/bin/bash
SCRIPT
=
$(
readlink
-f
$0
)
MYDIR
=
$(
dirname
$SCRIPT
)
cd
$MYDIR
source
binutils.spec
for
b
in
$binutils_binaries
do
...
...
@@ -10,6 +16,10 @@ do
mkdir
in
fi
echo
"1"
>
in
/1
if
[
-d
out
]
;
then
rm
-fr
out
fi
popd
done
done
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