…d current ios sdk 5.1
…ng the sysctlbyname code from DarwinIsAppleTV2
Finally resolves the insane cpu usage that can be seen for some ass subtitle. Also fixes ticket #13023
…for the heads up)
…lid files from being picked up (fixes #13080)
…for that artist in the artistinfo table
UnrarXLib does not handle invalid files gracefully enough, and some files can cause it to tell CRarFile that it has written more data into its buffer than actually fits there, causing CRarFile::Read() to eventually overread the buffer. Add checks in CRarFile for the validity of byte counts retrieved from UnrarXLib to prevent crashes in such situations.
Some multi-volume RAR files have their unpacked size set as 0 in all volumes except the first one. Use the previous unpacked size instead of 0 in such cases in order to support such files properly.
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().
…the current position - fixes #12992
…g constants to the memory map. Since LocalizeStrings.cpp has ANSI encoding, that is what we need to use for encoding, when we add this strings
The system logged in user could possibly be right, however it will try to connect to remote server with a blank password which is very likely to fail. Thus we default to access remote server as guest if no user has been passed in url.
…(closes #11184 - thanks llyzs)
Previous code correctly closed the decoder, but kept closing it instead recreating on next pass in Check()