Changeset 107736 in vbox for trunk/src/VBox/Storage/VMDK.cpp
- Timestamp:
- Jan 14, 2025 9:11:31 AM (5 weeks ago)
- svn:sync-xref-src-repo-rev:
- 166843
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VMDK.cpp
r107723 r107736 8660 8660 return VERR_NO_MEMORY; 8661 8661 8662 /** @todo r=aeichner Carefully review the error handling logic, we mustn't leave the image in an inconsistent 8663 * state if something fails, apart from hard underlying I/O errors of course. 8664 * Memory allocation failures should not cause any corruptions. 8665 */ 8662 8666 int rc; 8663 8667 do … … 8669 8673 uint32_t cbGTOff = RT_ALIGN_Z(VMDK_SECTOR2BYTE(cDirSectorDiff + cTableSectorDiff + cDirSectorDiff), 512); 8670 8674 8675 /** @todo r=aeichner An error here doesn't make the whole operation fail, it just breaks out of the loop. */ 8671 8676 for (int i = pExtent->cGDEntries - 1; i >= 0; i--) 8672 8677 { … … 8776 8781 pExtent->pRGD = (uint32_t *)RTMemReallocZ(pExtent->pRGD, pExtent->cGDEntries * sizeof(uint32_t), cbNewGD); 8777 8782 if (RT_UNLIKELY(!pExtent->pRGD)) 8778 r c =VERR_NO_MEMORY;8783 return VERR_NO_MEMORY; 8779 8784 } 8780 8785 }
Note:
See TracChangeset
for help on using the changeset viewer.