Skip to content

Commit 5654de4

Browse files
committed
zip64 fixes: allow to extract files beyond 4G limit:
implemented reading zip64 extra information fields. If a zip64 signature is found but 'large file support' is disabled, do not attempt to scan the zip as a corrupted file (if the OS is capable of handling large files).
1 parent b6d822b commit 5654de4

5 files changed

Lines changed: 318 additions & 158 deletions

File tree

crengine/include/lvcommoncontaineriteminfo.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ class LVCommonContainerItemInfo : public LVContainerItemInfo
3232
lString32 m_name;
3333
lUInt32 m_flags;
3434
bool m_is_container;
35-
lUInt32 m_srcpos;
36-
lUInt32 m_srcsize;
35+
lvpos_t m_srcpos;
36+
lvsize_t m_srcsize;
3737
lUInt32 m_srcflags;
3838
public:
3939
virtual lvsize_t GetSize() const { return m_size; }
4040
virtual const lChar32 * GetName() const { return m_name.empty()?NULL:m_name.c_str(); }
4141
virtual lUInt32 GetFlags() const { return m_flags; }
4242
virtual bool IsContainer() const { return m_is_container; }
43-
lUInt32 GetSrcPos() { return m_srcpos; }
44-
lUInt32 GetSrcSize() { return m_srcsize; }
43+
lvpos_t GetSrcPos() { return m_srcpos; }
44+
lvsize_t GetSrcSize() { return m_srcsize; }
4545
lUInt32 GetSrcFlags() { return m_srcflags; }
46-
void SetSrc( lUInt32 pos, lUInt32 size, lUInt32 flags )
46+
void SetSrc( lvpos_t pos, lvsize_t size, lUInt32 flags )
4747
{
4848
m_srcpos = pos;
4949
m_srcsize = size;

0 commit comments

Comments
 (0)