mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
plugin/zip: UnZip now ignoring local headers
git-svn-id: svn://ultimatepp.org/upp/trunk@6837 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
9d91e26422
commit
7d9d346dff
1 changed files with 6 additions and 12 deletions
|
|
@ -100,18 +100,12 @@ bool UnZip::ReadFile(Stream& out, Gate2<int, int> progress)
|
|||
if(zip->Get32le() != 0x04034b50)
|
||||
return false;
|
||||
int ver = zip->Get16le();
|
||||
if(zip->Get16le() != f.bit)
|
||||
return false;
|
||||
if(zip->Get16le() != f.method)
|
||||
return false;
|
||||
if(zip->Get32le() != f.time)
|
||||
return false;
|
||||
if(zip->Get32le() != f.crc)
|
||||
return false;
|
||||
if(zip->Get32le() != f.csize)
|
||||
return false;
|
||||
if(zip->Get32le() != f.usize)
|
||||
return false;
|
||||
zip->Get16le(); // Skip header, use info from centrall dir
|
||||
zip->Get16le();
|
||||
zip->Get32le();
|
||||
zip->Get32le();
|
||||
zip->Get32le();
|
||||
zip->Get32le();
|
||||
dword filelen = zip->Get16le();
|
||||
dword extralen = zip->Get16le();
|
||||
zip->SeekCur(filelen + extralen);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue