VirtualBox

Ignore:
Timestamp:
Feb 12, 2012 6:52:43 PM (13 years ago)
Author:
vboxsync
Message:

Runtime/Dvm: Fix possible integer overflow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/dvm/dvmbsdlabel.cpp

    r40027 r40085  
    374374        pVol->idxEntry           = idx;
    375375        pVol->pBsdPartitionEntry = pBsdPartitionEntry;
    376         pVol->offStart           = pBsdPartitionEntry->offSectorStart * pThis->DiskLabel.cbSector;
     376        pVol->offStart           = (uint64_t)pBsdPartitionEntry->offSectorStart * pThis->DiskLabel.cbSector;
    377377        pVol->cbVolume           = pBsdPartitionEntry->cSectors * pThis->DiskLabel.cbSector;
    378378
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