mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 03:11:48 +00:00
Fixed a bug with in validate_scan_lists where realloc was not called with
sufficient size.
This commit is contained in:
parent
1eb18b3143
commit
8e9c6a0e1f
1 changed files with 2 additions and 1 deletions
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue