Changeset 104170 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Apr 5, 2024 8:53:01 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp
r99775 r104170 2296 2296 PLSILOGICDEVICE pTgtDev = &pThisCC->paDeviceStates[pGuestReq->SCSIIO.u8TargetID]; 2297 2297 2298 if (pTgtDev->pDrvBase) 2298 if ( pTgtDev->pDrvBase 2299 && pGuestReq->SCSIIO.u8CDBLength <= RT_ELEMENTS(pGuestReq->SCSIIO.au8CDB)) 2299 2300 { 2300 2301 /* Allocate and prepare a new request. */ … … 2365 2366 if (g_cLogged++ < MAX_REL_LOG_ERRORS) 2366 2367 { 2367 LogRel(("LsiLogic#%d: %d/%d (Bus/Target) doesn't exist\n", pDevIns->iInstance,2368 pGuestReq->SCSIIO.u8TargetID, pGuestReq->SCSIIO.u8Bus ));2368 LogRel(("LsiLogic#%d: %d/%d/%d (Bus/Target/CDBLength) doesn't exist\n", pDevIns->iInstance, 2369 pGuestReq->SCSIIO.u8TargetID, pGuestReq->SCSIIO.u8Bus, pGuestReq->SCSIIO.u8CDBLength)); 2369 2370 /* Log the CDB too */ 2370 2371 LogRel(("LsiLogic#%d: Guest issued CDB {%#x", 2371 2372 pDevIns->iInstance, pGuestReq->SCSIIO.au8CDB[0])); 2372 for (unsigned i = 1; i < pGuestReq->SCSIIO.u8CDBLength; i++)2373 for (unsigned i = 1; i < RT_MIN(pGuestReq->SCSIIO.u8CDBLength, RT_ELEMENTS(pGuestReq->SCSIIO.au8CDB)); i++) 2373 2374 LogRel((", %#x", pGuestReq->SCSIIO.au8CDB[i])); 2374 2375 LogRel(("}\n"));
Note:
See TracChangeset
for help on using the changeset viewer.