From 635675b1430a89e950f71112d3bfc74feee4b19a Mon Sep 17 00:00:00 2001 From: nnposter Date: Sun, 14 Jul 2019 16:54:55 +0000 Subject: [PATCH] Reduced resume argument buffer back to 4K This will align it with arg_parse() in utils.cc --- nmap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmap.cc b/nmap.cc index 7b6928e4f..5b2fa3ac4 100644 --- a/nmap.cc +++ b/nmap.cc @@ -2336,7 +2336,7 @@ int nmap_main(int argc, char *argv[]) { int gather_logfile_resumption_state(char *fname, int *myargc, char ***myargv) { char *filestr; int filelen; - char nmap_arg_buffer[128*1024]; /* roughly aligned with Linux limit */ + char nmap_arg_buffer[4096]; /* roughly aligned with arg_parse limit */ struct in_addr lastip; char *p, *q, *found, *lastipstr; /* I love C! */ /* We mmap it read/write since we will change the last char to a newline if it is not already */