VirtualBox

Changeset 62153 in vbox for trunk


Ignore:
Timestamp:
Jul 11, 2016 10:28:21 AM (9 years ago)
Author:
vboxsync
Message:

Storage/VDI: Fix possible integer underflow when calculating the overlap between the increased block allocation table and the start offset when resizing an image. Resizing a disk exhausted the complete host disk before

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VDI.cpp

    r60608 r62153  
    26382638        uint64_t offStartDataNew = RT_ALIGN_32(pImage->offStartBlocks + cbBlockspaceNew, VDI_DATA_ALIGN); /** < New start offset for block data after the resize */
    26392639
    2640         if (   pImage->offStartData != offStartDataNew
     2640        if (   pImage->offStartData < offStartDataNew
    26412641            && cBlocksAllocated > 0)
    26422642        {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette