Skip to content

Commit 11dd97f

Browse files
committed
fix nyx bug in afl-showmap
1 parent 6d3805c commit 11dd97f

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/afl-showmap.c

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,12 +1548,17 @@ int main(int argc, char **argv_orig, char **envp) {
15481548
if (!be_quiet)
15491549
ACTF("Acquired new map size for target: %u bytes\n", new_map_size);
15501550

1551-
afl_shm_deinit(&shm);
1552-
afl_fsrv_kill(fsrv);
1553-
fsrv->map_size = new_map_size;
1554-
fsrv->trace_bits =
1555-
afl_shm_init(&shm, new_map_size, 0, DEFAULT_PERMISSION, -1);
1556-
1551+
#ifdef __linux__
1552+
/* no need to terminate the nyx runner */
1553+
if (!fsrv->nyx_mode) {
1554+
#endif
1555+
afl_shm_deinit(&shm);
1556+
afl_fsrv_kill(fsrv);
1557+
fsrv->map_size = new_map_size;
1558+
fsrv->trace_bits = afl_shm_init(&shm, new_map_size, 0);
1559+
#ifdef __linux__
1560+
}
1561+
#endif
15571562
}
15581563

15591564
map_size = new_map_size;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy