Skip to content

ZipInputStream cannot read in-place updated archives #639

@tangkq

Description

@tangkq

Steps to reproduce

1.unity2018 empty project
2.build apk by Internal build system
3.unzip the apk
code:

ZipInputStream s = new ZipInputStream(File.OpenRead(file));	
ZipEntry theEntry;
while ((theEntry = s.GetNextEntry()) != null)

test apk file
https://pan.baidu.com/s/1UJLdYwWMvpuoVjqCZaB-Hg
net disk key: 5ygk

Expected behavior

unzip the apk success

Actual behavior

we get Incorrect and Garbled string and then Run to GetNextEntry while has some exception as "Wrong Local header signature: 0x50000000"

Version of SharpZipLib

v1.3.2

Obtained from (only keep the relevant lines)

source code from github

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions