Changeset 73097 in vbox for trunk/src/VBox/Storage/ISCSI.cpp
- Timestamp:
- Jul 12, 2018 9:06:33 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/ISCSI.cpp
r69500 r73097 2772 2772 */ 2773 2773 size_t cI2TSegs = 2*(pScsiReq->cI2TSegs + 1); 2774 pIScsiPDU = (PISCSIPDUTX)RTMemAllocZ(RT_ OFFSETOF(ISCSIPDUTX, aISCSIReq[cI2TSegs]));2774 pIScsiPDU = (PISCSIPDUTX)RTMemAllocZ(RT_UOFFSETOF_DYN(ISCSIPDUTX, aISCSIReq[cI2TSegs])); 2775 2775 if (!pIScsiPDU) 2776 2776 return VERR_NO_MEMORY; … … 4836 4836 Assert(cbSegs == cbToRead); 4837 4837 4838 PSCSIREQ pReq = (PSCSIREQ)RTMemAllocZ(RT_ OFFSETOF(SCSIREQ, aSegs[cT2ISegs]));4838 PSCSIREQ pReq = (PSCSIREQ)RTMemAllocZ(RT_UOFFSETOF_DYN(SCSIREQ, aSegs[cT2ISegs])); 4839 4839 if (RT_LIKELY(pReq)) 4840 4840 { … … 4963 4963 Assert(cbSegs == cbToWrite); 4964 4964 4965 PSCSIREQ pReq = (PSCSIREQ)RTMemAllocZ(RT_ OFFSETOF(SCSIREQ, aSegs[cI2TSegs]));4965 PSCSIREQ pReq = (PSCSIREQ)RTMemAllocZ(RT_UOFFSETOF_DYN(SCSIREQ, aSegs[cI2TSegs])); 4966 4966 if (RT_LIKELY(pReq)) 4967 4967 {
Note:
See TracChangeset
for help on using the changeset viewer.