You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Integer overflow in parse of max_ips_to_scan
max_ips_to_scan defined as unsigned int max_ips_to_scan; // Used for Random input (-iR) to specify how in NmapOps.h
but use as ulong o.max_ips_to_scan = strtoul(optarg, &endptr, 10); in nmap.cc
To Reproduce nmap -iR 2147483647 works fine, nmap -iR 2147483648 parsed 0 target.
The text was updated successfully, but these errors were encountered:
Describe the bug
Integer overflow in parse of max_ips_to_scan
max_ips_to_scan defined as
unsigned int max_ips_to_scan; // Used for Random input (-iR) to specify how
in NmapOps.hbut use as ulong
o.max_ips_to_scan = strtoul(optarg, &endptr, 10);
in nmap.ccTo Reproduce
nmap -iR 2147483647
works fine,nmap -iR 2147483648
parsed 0 target.The text was updated successfully, but these errors were encountered: