VirtualBox

Changeset 88867 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
May 4, 2021 5:45:48 PM (4 years ago)
Author:
vboxsync
Message:

DrvIntNetR0: Corrected limit the optimized case in intnetR0SgReadPart and corrected the assertion there.

File:
1 edited

Legend:

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

    r88866 r88867  
    647647
    648648    /* The optimized case. */
    649     if (RT_LIKELY(    pSG->cSegsUsed == 1
    650                   ||  pSG->aSegs[0].cb >= off + cb))
    651     {
    652         AssertMsg(pSG->cbTotal == pSG->aSegs[0].cb, ("%#x vs %#x\n", pSG->cbTotal, pSG->aSegs[0].cb));
     649    if (RT_LIKELY(pSG->aSegs[0].cb >= off + cb))
     650    {
     651        AssertMsg(pSG->cbTotal >= pSG->aSegs[0].cb, ("%#x vs %#x\n", pSG->cbTotal, pSG->aSegs[0].cb));
    653652        memcpy(pvBuf, (uint8_t const *)pSG->aSegs[0].pv + off, cb);
    654653        return true;
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