VirtualBox

Changeset 56879 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 9, 2015 1:39:09 AM (10 years ago)
Author:
vboxsync
Message:

SrvIntNetR0: fix off-by-one in the fast path address cache lookup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp

    r56316 r56879  
    15261526                  && (   intnetR0AddrUIsEqualEx((PCRTNETADDRU)pCache->pbEntries, pAddr, cbAddr)
    15271527                      || (i > 1
    1528                           && intnetR0AddrUIsEqualEx((PCRTNETADDRU)(pCache->pbEntries + pCache->cbEntry * i), pAddr, cbAddr))) ))
     1528                          && intnetR0AddrUIsEqualEx((PCRTNETADDRU)(pCache->pbEntries + pCache->cbEntry * (i-1)), pAddr, cbAddr))) ))
    15291529        return;
    15301530
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette