- Timestamp:
- Jan 10, 2024 8:24:37 PM (13 months ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevVirtioNet.cpp
r101400 r102827 2807 2807 uint64_t srcSgCur = (uint64_t)pSgPhysSend->GCPhysCur; 2808 2808 cbCopied = RT_MIN((uint64_t)cbRemain, srcSgLen - (srcSgCur - srcSgStart)); 2809 /* 2810 * Guest sent a bogus S/G chain, there doesn't seem to be a way to report an error but 2811 * as this shouldn't happen anyway we just stop proccessing this chain. 2812 */ 2813 if (RT_UNLIKELY(!cbCopied)) 2814 break; 2809 2815 virtioCoreGCPhysRead(pVirtio, pDevIns, 2810 2816 (RTGCPHYS)pSgPhysSend->GCPhysCur, -
trunk/src/VBox/Devices/VirtIO/VirtioCore.cpp
r100402 r102827 985 985 { 986 986 cbCopy = RT_MIN(pSgVirtReturn->cbSegLeft, pSgPhysReturn->cbSegLeft); 987 Assert (cbCopy > 0);987 AssertReturn(cbCopy > 0, VERR_INVALID_PARAMETER); 988 988 virtioCoreGCPhysWrite(pVirtio, pDevIns, (RTGCPHYS)pSgPhysReturn->GCPhysCur, pSgVirtReturn->pvSegCur, cbCopy); 989 989 RTSgBufAdvance(pSgVirtReturn, cbCopy);
Note:
See TracChangeset
for help on using the changeset viewer.