VirtualBox

Ignore:
Timestamp:
Jun 1, 2017 1:14:26 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
115888
Message:

IPRT: rtZipTarFssWriter_WriteGnuSparseHeaders: isextended location differs between the normal GNU header and the sparse GNU header.

File:
1 edited

Legend:

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

    r67166 r67206  
    11611161    AssertRCReturn(rc, rc);
    11621162
     1163    Assert(pThis->aHdrs[0].Gnu.isextended == 0);
     1164
    11631165    /*
    11641166     * Walk the sparse spans, fill and write headers one by one.
     
    11791181            if (iSparse >= cSparse)
    11801182            {
    1181                 pThis->aHdrs[0].Gnu.isextended = 1; /* more headers to come */
    1182                 if (cSparse == RT_ELEMENTS(pThis->aHdrs[0].Gnu.sparse))
     1183                if (cSparse != RT_ELEMENTS(pThis->aHdrs[0].Gnu.sparse))
     1184                    pThis->aHdrs[0].GnuSparse.isextended = 1; /* more headers to come */
     1185                else
     1186                {
     1187                    pThis->aHdrs[0].Gnu.isextended = 1; /* more headers to come */
    11831188                    rc = rtZipTarFssWriter_ChecksumHdr(&pThis->aHdrs[0]);
     1189                }
    11841190                if (RT_SUCCESS(rc))
    11851191                    rc = RTVfsIoStrmWrite(pThis->hVfsIos, &pThis->aHdrs[0], sizeof(pThis->aHdrs[0]), true /*fBlocking*/, NULL);
     
    12061212    if (iSparse != 0)
    12071213    {
    1208         Assert(pThis->aHdrs[0].Gnu.isextended == 0);
     1214        Assert(pThis->aHdrs[0].GnuSparse.isextended == 0);
    12091215        rc = RTVfsIoStrmWrite(pThis->hVfsIos, &pThis->aHdrs[0], sizeof(pThis->aHdrs[0]), true /*fBlocking*/, NULL);
    12101216    }
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