forked from len0rd/rockbox
Update OSDaB Zip class to most current version from the projects svn repo (r7).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20802 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8e8c36019c
commit
f43515eaf7
9 changed files with 17 additions and 14 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/****************************************************************************
|
||||
** Filename: unzip.cpp
|
||||
** Last updated [dd/mm/yyyy]: 28/01/2007
|
||||
** Last updated [dd/mm/yyyy]: 07/09/2008
|
||||
**
|
||||
** pkzip 2.0 decompression.
|
||||
**
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
** (mainly Info-Zip and Gilles Vollant's minizip).
|
||||
** Compression and decompression actually uses the zlib library.
|
||||
**
|
||||
** Copyright (C) 2007 Angius Fabrizio. All rights reserved.
|
||||
** Copyright (C) 2007-2008 Angius Fabrizio. All rights reserved.
|
||||
**
|
||||
** This file is part of the OSDaB project (http://osdab.sourceforge.net/).
|
||||
**
|
||||
|
|
@ -761,7 +761,8 @@ UnZip::ErrorCode UnzipPrivate::seekToCentralDirectory()
|
|||
break;
|
||||
}
|
||||
|
||||
offset -= UNZIP_EOCD_SIZE;
|
||||
// TODO: This is very slow and only a temporary bug fix. Need some pattern matching algorithm here.
|
||||
offset -= 1 /*UNZIP_EOCD_SIZE*/;
|
||||
if (offset <= 0)
|
||||
return UnZip::InvalidArchive;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue