1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-16 04:39:03 +00:00

Increases resume command line buffer. Closes #1659

This commit is contained in:
nnposter
2019-07-14 16:15:45 +00:00
parent 23ee017b95
commit 4e6fef4a0d
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
#Nmap Changelog ($Id$); -*-text-*- #Nmap Changelog ($Id$); -*-text-*-
o [GH#1659] Allow resuming nmap scan with lengthy command line
[Clément Notin]
o [NSE] New library, oops.lua, makes reporting errors easy, with plenty of o [NSE] New library, oops.lua, makes reporting errors easy, with plenty of
debugging detail when needed, and no clutter when not. [Daniel Miller] debugging detail when needed, and no clutter when not. [Daniel Miller]

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[1024]; char nmap_arg_buffer[128*1024]; /* roughly aligned with Linux 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 */