VirtualBox

Changeset 52695 in vbox


Ignore:
Timestamp:
Sep 11, 2014 11:51:07 AM (10 years ago)
Author:
vboxsync
Message:

Storage/VHD: Fix resize corruption if the image has more than 4GB of blocks allocated

File:
1 edited

Legend:

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

    r52468 r52695  
    26972697            if (pImage->pBlockAllocationTable[idxBlock] != ~0U)
    26982698            {
    2699                 uint64_t offStartBlock = pImage->pBlockAllocationTable[idxBlock] * VHD_SECTOR_SIZE;
     2699                uint64_t offStartBlock = (uint64_t)pImage->pBlockAllocationTable[idxBlock] * VHD_SECTOR_SIZE;
    27002700                if (offStartBlock < offStartDataOld)
    27012701                    offStartDataOld = offStartBlock;
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