aboutsummaryrefslogtreecommitdiff
path: root/lib/UnrarXLib/extract.cpp
AgeCommit message (Collapse)Author
2017-04-07[cleanup] remove UnrarXLibStefan Saraev
2014-03-13fixed UnrarXlib: can't extract file with non-english file name.taxigps
2012-05-16fixed: CRarFile::Read() returning wrong data after some seek patternsAnssi Hannula
Certain seek patterns on a file inside a non-compressed rar file can cause CmdExtract::UnstoreFile() to think that the destination buffer has been filled (as DestUnpSize counter, originally set to the file size, reaches zero). However, counting written bytes using DestUnpSize doesn't make sense for the UnpackToMemory codepath used for non-compressed rar files, as there can be seeks which can eventually cause more data to be read than what the actual file size was. The actual output buffer is internally handled by ComprDataIO. The check in UnstoreFile() will result in not all data being written to the destination buffer, causing CRarFile::Read() to return old stale data. Fix that by dropping the unnecessary DestUnpSize handling in UnpackToMemory codepath of CmdExtract::UnstoreFile().
2012-04-21threads: remove WINAPI, implement priority for pthreadsFernetMenta
Also: [fix] threads: fix race condition when stopping thread - cherry pick merge Also, from jimfcarroll: [fixed] AirPlayServer now complies with the new CThread constructor requirements (that is, you must supply a thread name). replace custom thread local storage with the XbmcThreads::ThreadLocal template. [cosmetic] removed incorrect hungarian notation. [cleanup] Removed XSyncUtils. Moved the GlobalMemoryStatus call to XMemUtil. Cleaned up code that used the #define INFINITE from XSyncUtils.h [cleanup] Some miscellaneous cleanup. Fixed initialization warning in LCD. Removed some unused functions and members. [cleanup] PAPlayer warning due to constructor initialization list order.
2011-10-10wrapped strncpy to ensure resulting strings are always null terminated.Jay Kominek
2011-10-10replaced some strcpy's that were causing crashes, with strncpy's in unrarxlibJay Kominek
2011-06-26Fixed the Unrar code broken by the threading refactor.Jim Carroll
In several places in the rar code the new threading mechanisms were not used in a "functionally equivalent" manner. In five places the original code checked for a timeout using a "!= WAIT_OBJECT_0" which was interpreted as checking for a signaled state as if the "!" wasn't there. This commit fixes that problem.
2011-06-23Removed all WaitForSingleObject and WaitForMultipleObjects calls and ↵Jim Carroll
replaced them with the latest CEvent calls.
2011-01-24Merged cptspiff's code-reshuffle branch.theuni
Squashed commit due to build breakage during code-reshuffle history. Conflicts: xbmc/Util.cpp xbmc/cdrip/CDDARipper.cpp xbmc/filesystem/Directory.cpp xbmc/filesystem/File.cpp