VirtualBox

Ignore:
Timestamp:
May 26, 2023 12:06:12 PM (21 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157651
Message:

IPRT/dvm: Use rtDvmDiskReadUnaligned rather than rtDvmDiskRead in the RTDVMFMTOPS::pfnVolumeRead implementations to avoid triggering assertion when RTCp and others reads files via the FAT file system driver.

File:
1 edited

Legend:

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

    r99739 r99989  
    641641    AssertReturn(off + cbRead <= pVol->cbVolume, VERR_INVALID_PARAMETER);
    642642
    643     return rtDvmDiskRead(pVol->pVolMgr->pDisk, pVol->offStart + off, pvBuf, cbRead);
     643    return rtDvmDiskReadUnaligned(pVol->pVolMgr->pDisk, pVol->offStart + off, pvBuf, cbRead);
    644644}
    645645
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