VirtualBox

Changeset 82593 in vbox


Ignore:
Timestamp:
Dec 16, 2019 5:57:43 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135478
Message:

Runtime/tarvfs.cpp: Use off instead of the last accessed file offset, fixes error when randomly accessing a file inside the TAR archive if the end of file was accessed previously

File:
1 edited

Legend:

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

    r76553 r82593  
    10041004
    10051005    Assert(pThis->cbFile >= pThis->offFile);
    1006     uint64_t cbLeft   = (uint64_t)(pThis->cbFile - pThis->offFile);
     1006    uint64_t cbLeft   = (uint64_t)(pThis->cbFile - off);
    10071007    size_t   cbToRead = pSgBuf->paSegs[0].cbSeg;
    10081008    if (cbToRead > cbLeft)
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