mirror of
https://github.com/nmap/nmap.git
synced 2026-01-20 13:19:01 +00:00
Fixed a bug with in validate_scan_lists where realloc was not called with
sufficient size.
This commit is contained in:
3
nmap.cc
3
nmap.cc
@@ -507,7 +507,8 @@ void validate_scan_lists(scan_lists &ports, NmapOps &o){
|
||||
// if there were duplicate ports then we can save some memory
|
||||
if (merged_port_count < (ports.ack_ping_count + ports.syn_ping_count)) {
|
||||
merged_port_list = (unsigned short*)
|
||||
safe_realloc(merged_port_list, merged_port_count);
|
||||
safe_realloc(merged_port_list,
|
||||
merged_port_count * sizeof(unsigned short));
|
||||
}
|
||||
|
||||
// clean up a bit
|
||||
|
||||
Reference in New Issue
Block a user