VirtualBox

Changeset 85083 in vbox


Ignore:
Timestamp:
Jul 7, 2020 2:34:36 PM (4 years ago)
Author:
vboxsync
Message:

Fix #9766

Location:
trunk/src/VBox/Devices/Network
Files:
2 edited

Legend:

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

    r82968 r85083  
    12891289                    pGso->cbHdrsTotal = pHdr->u16CSumStart +
    12901290                        ((PRTNETTCP)(((uint8_t*)pSgBuf->aSegs[0].pvSeg) + pHdr->u16CSumStart))->th_off * 4;
     1291                    AssertMsgReturn(pSgBuf->cbUsed > pGso->cbHdrsTotal,
     1292                        ("cbHdrsTotal exceeds size of frame"), VERR_BUFFER_OVERFLOW);
    12911293                    pGso->cbHdrsSeg   = pGso->cbHdrsTotal;
    12921294                    break;
  • trunk/src/VBox/Devices/Network/DevVirtioNet_1_0.cpp

    r85045 r85083  
    23072307                    pGso->cbHdrsTotal = pPktHdr->uChksumStart +
    23082308                        ((PRTNETTCP)(((uint8_t*)pSgBuf->aSegs[0].pvSeg) + pPktHdr->uChksumStart))->th_off * 4;
     2309                    AssertMsgReturn(pSgBuf->cbUsed > pGso->cbHdrsTotal,
     2310                                    ("cbHdrsTotal exceeds size of frame"), VERR_BUFFER_OVERFLOW);
    23092311                    pGso->cbHdrsSeg   = pGso->cbHdrsTotal;
    23102312                    break;
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