Changeset 37384 in vbox for trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
- Timestamp:
- Jun 8, 2011 3:09:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r37381 r37384 1487 1487 VMMDevVideoSetVisibleRegion *ptr = (VMMDevVideoSetVisibleRegion *)pRequestHeader; 1488 1488 1489 if (pRequestHeader->size != sizeof(VMMDevVideoSetVisibleRegion) + (uint64_t)ptr->cRect * sizeof(RTRECT) - sizeof(RTRECT)) 1490 { 1491 Log(("VMMDevReq_VideoSetVisibleRegion request size too small!!!\n")); 1489 if ( ptr->cRects > _1M /* restrict to sane range */ 1490 || pRequestHeader->size != sizeof(VMMDevVideoSetVisibleRegion) + ptr->cRect * sizeof(RTRECT) - sizeof(RTRECT)) 1491 { 1492 Log(("VMMDevReq_VideoSetVisibleRegion: cRects=%#x doesn't match size=%#x or is out of bounds\n", 1493 ptr->cRects, pRequestHeader->size)); 1492 1494 pRequestHeader->rc = VERR_INVALID_PARAMETER; 1493 1495 }
Note:
See TracChangeset
for help on using the changeset viewer.