mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 11:28:08 +00:00
afl-gcc change -> test.sh
This commit is contained in:
@ -330,7 +330,7 @@ int main(int argc, char** argv, char** envp) {
|
|||||||
|
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
||||||
} else if (isatty(2) && !getenv("AFL_QUIET")) {
|
} else if ((isatty(2) && !getenv("AFL_QUIET")) || getenv("AFL_DEBUG") != NULL) {
|
||||||
|
|
||||||
SAYF(cCYA "afl-gcc-fast" VERSION cRST
|
SAYF(cCYA "afl-gcc-fast" VERSION cRST
|
||||||
" initially by <aseipp@pobox.com>, maintainer: hexcoder-\n");
|
" initially by <aseipp@pobox.com>, maintainer: hexcoder-\n");
|
||||||
|
@ -533,7 +533,7 @@ int plugin_init(struct plugin_name_args * plugin_info,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Show a banner */
|
/* Show a banner */
|
||||||
if (isatty(2) && !getenv("AFL_QUIET")) {
|
if ((isatty(2) && !getenv("AFL_QUIET")) || getenv("AFL_DEBUG") != NULL) {
|
||||||
|
|
||||||
SAYF(G_(cCYA "afl-gcc-pass" VERSION cRST
|
SAYF(G_(cCYA "afl-gcc-pass" VERSION cRST
|
||||||
" initially by <aseipp@pobox.com>, maintainer: hexcoder-\n"));
|
" initially by <aseipp@pobox.com>, maintainer: hexcoder-\n"));
|
||||||
|
@ -120,7 +120,7 @@ test "$SYS" = "i686" -o "$SYS" = "x86_64" -o "$SYS" = "amd64" -o "$SYS" = "i86pc
|
|||||||
}
|
}
|
||||||
rm -f test-instr.plain.0 test-instr.plain.1
|
rm -f test-instr.plain.0 test-instr.plain.1
|
||||||
TUPLES=`echo 0|../afl-showmap -m ${MEM_LIMIT} -o /dev/null -- ./test-instr.plain 2>&1 | grep Captur | awk '{print$3}'`
|
TUPLES=`echo 0|../afl-showmap -m ${MEM_LIMIT} -o /dev/null -- ./test-instr.plain 2>&1 | grep Captur | awk '{print$3}'`
|
||||||
test "$TUPLES" -gt 3 -a "$TUPLES" -lt 7 && {
|
test "$TUPLES" -gt 3 -a "$TUPLES" -lt 8 && {
|
||||||
$ECHO "$GREEN[+] ${AFL_GCC} run reported $TUPLES instrumented locations which is fine"
|
$ECHO "$GREEN[+] ${AFL_GCC} run reported $TUPLES instrumented locations which is fine"
|
||||||
} || {
|
} || {
|
||||||
$ECHO "$RED[!] ${AFL_GCC} produces weird instrumentation numbers: $TUPLES"
|
$ECHO "$RED[!] ${AFL_GCC} produces weird instrumentation numbers: $TUPLES"
|
||||||
|
Reference in New Issue
Block a user