VirtualBox

Changeset 63636 in vbox


Ignore:
Timestamp:
Aug 25, 2016 2:09:21 PM (8 years ago)
Author:
vboxsync
Message:

Storage/QED: Check that the filename size for the backing file is in bounds if the feature flag is set

File:
1 edited

Legend:

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

    r62873 r63636  
    302302        return false;
    303303    if (RT_UNLIKELY(pHeader->u64Size % 512 != 0))
     304        return false;
     305    if (RT_UNLIKELY(   pHeader->u64FeatureFlags & QED_FEATURE_BACKING_FILE
     306                    && (   pHeader->u32BackingFilenameSize == 0
     307                        || pHeader->u32BackingFilenameSize == UINT32_MAX)))
    304308        return false;
    305309
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