VirtualBox

Changeset 72585 in vbox for trunk/src


Ignore:
Timestamp:
Jun 17, 2018 3:30:26 PM (7 years ago)
Author:
vboxsync
Message:

Runtime/ntfsvfs.cpp: Additional checks, rtFsNtfsVol_ParseMft() might fail early without having a core structure allocated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/fs/ntfsvfs.cpp

    r72273 r72585  
    18601860        }
    18611861
    1862         rtFsNtfsCore_Destroy(pRec->pCore);
     1862        if (pRec->pCore)
     1863            rtFsNtfsCore_Destroy(pRec->pCore);
    18631864        rtFsNtfsMftRec_Release(pRec, pThis);
    18641865    }
     
    53465347                rc = RTERRINFO_LOG_REL_SET(pErrInfo, VERR_VFS_BOGUS_FORMAT, "MFT record #0 has no unnamed DATA attribute!");
    53475348        }
    5348         rtFsNtfsCore_Destroy(pRec->pCore);
     5349        if (pRec->pCore)
     5350            rtFsNtfsCore_Destroy(pRec->pCore);
    53495351        rtFsNtfsMftRec_Release(pRec, pThis);
    53505352    }
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