VirtualBox

Changeset 102827 in vbox for trunk/src/VBox/Devices/VirtIO


Ignore:
Timestamp:
Jan 10, 2024 8:24:37 PM (13 months ago)
Author:
vboxsync
Message:

Devices/VirtioCore, Devices/VirtioNet: Correct check, bugref:10566

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VirtIO/VirtioCore.cpp

    r100402 r102827  
    985985        {
    986986            cbCopy = RT_MIN(pSgVirtReturn->cbSegLeft,  pSgPhysReturn->cbSegLeft);
    987             Assert(cbCopy > 0);
     987            AssertReturn(cbCopy > 0, VERR_INVALID_PARAMETER);
    988988            virtioCoreGCPhysWrite(pVirtio, pDevIns, (RTGCPHYS)pSgPhysReturn->GCPhysCur, pSgVirtReturn->pvSegCur, cbCopy);
    989989            RTSgBufAdvance(pSgVirtReturn, cbCopy);
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