mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 12:18:08 +00:00
fix
This commit is contained in:
@ -77,7 +77,7 @@ static u32 tcnt, highest; /* tuple content information */
|
|||||||
|
|
||||||
static u32 in_len; /* Input data length */
|
static u32 in_len; /* Input data length */
|
||||||
|
|
||||||
static u32 map_size = MAP_SIZE;
|
static u32 map_size = MAP_SIZE, timed_out = 0;
|
||||||
|
|
||||||
static bool quiet_mode, /* Hide non-essential messages? */
|
static bool quiet_mode, /* Hide non-essential messages? */
|
||||||
edges_only, /* Ignore hit counts? */
|
edges_only, /* Ignore hit counts? */
|
||||||
@ -148,6 +148,7 @@ static const u8 count_class_binary[256] = {
|
|||||||
|
|
||||||
static void kill_child() {
|
static void kill_child() {
|
||||||
|
|
||||||
|
timed_out = 1;
|
||||||
if (fsrv->child_pid > 0) {
|
if (fsrv->child_pid > 0) {
|
||||||
|
|
||||||
kill(fsrv->child_pid, fsrv->kill_signal);
|
kill(fsrv->child_pid, fsrv->kill_signal);
|
||||||
@ -373,9 +374,10 @@ static void showmap_run_target_forkserver(afl_forkserver_t *fsrv, u8 *mem,
|
|||||||
|
|
||||||
if (!quiet_mode) {
|
if (!quiet_mode) {
|
||||||
|
|
||||||
if (fsrv->last_run_timed_out) {
|
if (timed_out || fsrv->last_run_timed_out) {
|
||||||
|
|
||||||
SAYF(cLRD "\n+++ Program timed off +++\n" cRST);
|
SAYF(cLRD "\n+++ Program timed off +++\n" cRST);
|
||||||
|
timed_out = 0;
|
||||||
|
|
||||||
} else if (stop_soon) {
|
} else if (stop_soon) {
|
||||||
|
|
||||||
@ -581,9 +583,10 @@ static void showmap_run_target(afl_forkserver_t *fsrv, char **argv) {
|
|||||||
|
|
||||||
if (!quiet_mode) {
|
if (!quiet_mode) {
|
||||||
|
|
||||||
if (fsrv->last_run_timed_out) {
|
if (timed_out || fsrv->last_run_timed_out) {
|
||||||
|
|
||||||
SAYF(cLRD "\n+++ Program timed off +++\n" cRST);
|
SAYF(cLRD "\n+++ Program timed off +++\n" cRST);
|
||||||
|
timed_out = 0;
|
||||||
|
|
||||||
} else if (stop_soon) {
|
} else if (stop_soon) {
|
||||||
|
|
||||||
|
Submodule unicorn_mode/unicornafl updated: 94617f5bee...d4915053d4
Reference in New Issue
Block a user