diff options
author | spiff <spiff@xbmc.org> | 2011-12-01 21:36:41 +0100 |
---|---|---|
committer | spiff <spiff@xbmc.org> | 2011-12-01 21:38:20 +0100 |
commit | 3c26ff7fa6a2f5f3b17ec72cd1e7ae98e7071757 (patch) | |
tree | 34638611fe39c982ebce0b07f54a5fd43bd65bbf /lib/UnrarXLib | |
parent | be4caba60b71739a22312d8382da2950cbdfac8a (diff) |
fixed: crash in rar seek code under certain circumstances
if the last archive in a set was less than 256kb, the seek
code set an invalid offset leading to crashes
Diffstat (limited to 'lib/UnrarXLib')
-rw-r--r-- | lib/UnrarXLib/rdwrfn.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/UnrarXLib/rdwrfn.cpp b/lib/UnrarXLib/rdwrfn.cpp index 94c8ea4f4e..4eae8fa696 100644 --- a/lib/UnrarXLib/rdwrfn.cpp +++ b/lib/UnrarXLib/rdwrfn.cpp @@ -82,7 +82,7 @@ int ComprDataIO::UnpRead(byte *Addr,uint Count) { if (CurUnpStart+MAXWINMEMSIZE>SrcArc->NewLhd.FullUnpSize) { - m_iSeekTo=SrcArc->NewLhd.FullUnpSize-iSeekTo+iStartOfFile; // back + m_iSeekTo=iStartOfFile; UnpPackedSize = SrcArc->NewLhd.FullPackSize; } else |