mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 18:18:07 +00:00
check for enough plot data
This commit is contained in:
9
afl-plot
9
afl-plot
@ -68,6 +68,15 @@ if [ ! -f "$inputdir/plot_data" ]; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
LINES=`cat "$inputdir/plot_data" | wc -l`
|
||||||
|
|
||||||
|
if [ "$LINES" -lt 3 ]; then
|
||||||
|
|
||||||
|
echo "[-] Error: plot_data carries too little data, let it run longer." 1>&2
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
BANNER="`cat "$inputdir/fuzzer_stats" 2> /dev/null | grep '^afl_banner ' | cut -d: -f2- | cut -b2-`"
|
BANNER="`cat "$inputdir/fuzzer_stats" 2> /dev/null | grep '^afl_banner ' | cut -d: -f2- | cut -b2-`"
|
||||||
|
|
||||||
test "$BANNER" = "" && BANNER="(none)"
|
test "$BANNER" = "" && BANNER="(none)"
|
||||||
|
Reference in New Issue
Block a user