VirtualBox

Changeset 55646 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
May 4, 2015 2:11:58 PM (10 years ago)
Author:
vboxsync
Message:

tarvfs.cpp: Set enmPrevType to enmType on the first file so that the end-of-stream validation code makes the right decisions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/zip/tarvfs.cpp

    r54370 r55646  
    7878    /** The state machine state. */
    7979    RTZIPTARREADERSTATE     enmState;
    80     /** The type of the previous TAR header. */
     80    /** The type of the previous TAR header.
     81     * @remarks Same a enmType for the first header in the TAR stream. */
    8182    RTZIPTARTYPE            enmPrevType;
    8283    /** The type of the current TAR header. */
     
    459460    }
    460461    if (fFirst)
     462    {
    461463        pThis->enmType = enmType;
     464        if (pThis->enmPrevType == RTZIPTARTYPE_INVALID)
     465            pThis->enmPrevType = enmType;
     466    }
    462467
    463468    /*
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