1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-22 07:29:01 +00:00

Reduced resume argument buffer back to 4K

This will align it with arg_parse() in utils.cc
This commit is contained in:
nnposter
2019-07-14 16:54:55 +00:00
parent 4e6fef4a0d
commit 635675b143

View File

@@ -2336,7 +2336,7 @@ int nmap_main(int argc, char *argv[]) {
int gather_logfile_resumption_state(char *fname, int *myargc, char ***myargv) { int gather_logfile_resumption_state(char *fname, int *myargc, char ***myargv) {
char *filestr; char *filestr;
int filelen; 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; struct in_addr lastip;
char *p, *q, *found, *lastipstr; /* I love C! */ 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 */ /* We mmap it read/write since we will change the last char to a newline if it is not already */