Skip to content

Commit b0cdf59

Browse files
committed
add helper script, bump version to 0.6.3
1 parent 3d709e5 commit b0cdf59

File tree

5 files changed

+27
-3
lines changed

5 files changed

+27
-3
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
afl-cov-0.6.3 (2020-05-13):
2+
- Allow @@ additionally to AFL_FILE
3+
- added three helper scripts
4+
15
afl-cov-0.6.2 (12/26/2018):
26
- (Tim Strazzere) Add support for llvm-cov compiled binaries. Add a check
37
when ensuring the binary was instrumented with gcov to catch an llvm-cov

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# afl-cov - AFL Fuzzing Code Coverage
22

3+
Version: 0.6.3
4+
35
- [Preface](#preface)
46
- [Introduction](#introduction)
57
- [Prerequisites](#prerequisites)
@@ -20,6 +22,7 @@ It has three changes:
2022
* afl-cov now accepts "@@" like AFL++ in the command line
2123
* afl-cov.sh makes using afl-cov easier (just needs two parameters)
2224
* afl-cov-build.sh makes builing a target for coverage easier
25+
* afl-stat.sh shows the statistics of a run (in progress or completed)
2326

2427
Enjoy!
2528

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.6.2
1+
0.6.3

afl-cov

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# File: afl-cov
44
#
5-
# Version: 0.6.2
5+
# Version: 0.6.3
66
#
77
# Purpose: Perform lcov coverage diff's against each AFL queue file to see
88
# new functions and line coverage evolve from an AFL fuzzing cycle.
@@ -44,7 +44,7 @@ try:
4444
except ImportError:
4545
import subprocess
4646

47-
__version__ = '0.6.2.1'
47+
__version__ = '0.6.3'
4848

4949
NO_OUTPUT = 0
5050
WANT_OUTPUT = 1

afl-stat.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
test "$1" = "-h" -o -z "$1" -o -z "$1" && {
3+
echo Syntax: $0 out-dir
4+
echo "Shows statistics of a run (in progress or done)"
5+
exit 1
6+
}
7+
test -n "$AFL_PATH" && PATH=$AFL_PATH:$PATH
8+
while [ -n "$1" ]; do
9+
test -d "$1" || { echo Error: not a directory: $1 ; }
10+
test -e "$1"/fuzzer_stats || { echo Error: not an afl-fuzz -o out directory ; }
11+
echo File: `realpath "$1"`
12+
egrep 'run_time|execs_done|execs_per_sec|paths_total|^unique_|stability' "$1"/fuzzer_stats | sort | tee -a "$1"/stats.out
13+
LINES=
14+
test -e "$1"/cov/afl-cov.log && LINES=`grep -w lines "$1"/cov/afl-cov.log|tail -n 1|sed 's/.*(//'|sed 's/ .*//'`
15+
echo "coverage : $LINES" | tee -a "$1"/stats.out
16+
shift
17+
done

0 commit comments

Comments
 (0)