mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 11:55:27 +00:00
fix: array icmp_advert_entry_addr may out of bound
when proxy_count=128, array icmp_advert_entry_addr and icmp_advert_entry_pref will out of bound.
This commit is contained in:
parent
d131a096a8
commit
bcd8efb926
1 changed files with 1 additions and 1 deletions
|
|
@ -1895,7 +1895,7 @@ bool NpingOps::issetICMPTransmitTimestamp(){
|
|||
|
||||
|
||||
int NpingOps::addICMPAdvertEntry(struct in_addr addr, u32 pref ){
|
||||
if( this->icmp_advert_entry_count > MAX_ICMP_ADVERT_ENTRIES )
|
||||
if( this->icmp_advert_entry_count >= MAX_ICMP_ADVERT_ENTRIES )
|
||||
return OP_FAILURE;
|
||||
this->icmp_advert_entry_addr[this->icmp_advert_entry_count] = addr;
|
||||
this->icmp_advert_entry_pref[this->icmp_advert_entry_count] = pref;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue