Commit Graph

52 Commits

Author SHA1 Message Date
Ladislav Zezula
8debce7eab Fixed heap overflow in handling of file patch 2023-08-04 11:19:49 +02:00
Ladislav Zezula
f2c086cef8 Fixed heap overflow 2023-07-08 14:29:02 +02:00
Ladislav Zezula
6c113f6681 lcLocale -> lcFileLocale. Now also contains platform 2022-09-28 20:15:07 +02:00
Ladislav Zezula
d5d2413e95 Fixed 2022-06-12 20:51:09 +02:00
GaryOderNichts
d1b47ab454 Big endian fixes 2022-03-26 19:34:34 +01:00
Ladislav Zezula
503ab19d3d SFileAddListFile optimized for protectors that set too large hash table 2022-02-13 07:40:22 +01:00
Ladislav Zezula
a5ef7a850a Fixed assert on some platforms 2021-12-26 11:36:55 +01:00
Ladislav Zezula
7da097c513 Regression tests 2021-12-21 10:37:24 +01:00
Ladislav Zezula
4f4f926c1a Support for protected SCX files 2021-12-17 22:33:19 +01:00
Ladislav Zezula
26b2f0e8b6 PDWORD -> LPDWORD 2021-05-17 15:19:36 +02:00
Ladislav Zezula
33bdae86c2 Added alignment-aware block encryption/decryption 2021-05-17 12:57:54 +02:00
Ladislav Zezula
a3332c7c9b nError -> dwErrCode 2021-05-17 10:04:06 +02:00
Gleb Mazovetskiy
172ed20dec Fix big endian on non-Mac
Mac-specific functions aren't all that useful, simply replaces them with
a platform-agnostic implementation.
2021-04-01 16:41:02 +01:00
Ladislav Zezula
383e1572ee Added support for amternative MPQ markers 2020-12-13 12:32:25 +01:00
Ladislav Zezula
866269d740 * Better checks for MPQ header v 4.0 2020-12-06 11:28:10 +01:00
Ladislav Zezula
b6102b2600 Removed trailing whitespace 2020-11-23 12:56:00 +01:00
Ladislav Zezula
b13aaed6d0 Fixed some variants of NP_Protect-ed maps 2020-11-18 19:12:53 +01:00
Ladislav Zezula
738444bddc Changed PLATFORM_* to STORMLIB_* 2020-10-24 09:21:20 +02:00
Ladislav Zezula
4a07a5851c Added support for NP_Protect protector (SC2 Maps) 2020-09-22 17:02:57 +02:00
Ladislav Zezula
f438d59c5c * Removed sprintf as source of incompatibilities
* Fixed bug
2020-08-26 10:17:05 +02:00
Ladislav Zezula
1f17e92643 Added checks for obviously fake files 2020-03-25 17:36:20 +01:00
Zezula Ladislav
dae0b690f7 + SFileAddListFile and SFileCompactArchive now take "const TCHAR *" instead of "const char *"
+ Fixed some bugs
2017-11-08 15:31:45 +01:00
Ladislav Zezula
866f56db23 + Reverted include directories 2016-11-06 16:50:07 +01:00
Lectem
32f7f18642 fix cmake dependency and move headers to include 2016-11-05 03:56:39 +01:00
Ladislav Zezula
b8fb98fcc4 + Yet another protector 2016-09-30 11:23:29 +02:00
Ladislav Zezula
8a370dd933 + Fixed workspace for storm_dll
+ Updated storm.dll from Warcraft 1.27
2016-07-15 14:57:46 +02:00
Ladislav Zezula
f311254785 + Fixed bug in opening SQP archives
+ More efficient version of GetNearestPowerOfTwo
2016-07-14 14:15:29 +02:00
Ladislav Zezula
7597fe1702 + Yet another protector solved 2016-07-11 22:52:11 +02:00
Ladislav Zezula
303631f9d7 + Updated for protectors fiddling with too big block table index 2016-06-18 20:32:15 +02:00
unknown
a8a92ccc92 + Fixed bug in SFileReadFile 2015-05-28 17:24:56 +02:00
Ladislav Zezula
1b38ceb0d4 + Fixed defects found by Coverity (well, most of them) 2015-05-28 13:49:23 +02:00
unknown
c45446094e + SFileFindFile now correctly returns hash index and locale, if exist 2015-05-13 17:41:34 +02:00
unknown
3cfa7f2a1a + Fixed possible stack overflow in HashStringJenkins
+ StormLib now creates a listfile even for empty archives to make sure it will be maintained at later point when files are added to it
+ Bug fixes in listfile loading
2015-05-06 16:33:45 +02:00
unknown
46930855f5 + Removed back reference of FileTable -> HashTable, as it is logically incorrect
+ Optimized patching process so it consimes less memory
+ Added hash table and block table defragmenting for malformed War3 maps
2015-05-01 07:06:29 +02:00
unknown
5747ad4910 + Defragmenting file table fixed 2015-04-21 19:36:13 +02:00
unknown
9337089747 + Better handling of MPQs corrupted by yet another silly MPQ protector 2015-04-01 06:52:50 +02:00
Ladislav Zezula
e5b9f5132a + SFileVerify: Added check whether the weak signature is not zeroed out.
+ Typos
2015-03-17 07:49:42 +01:00
unknown
c2261d5103 + Support for MPQ.KangTooJee map protector
+ Compacting optimized
2015-03-13 17:06:51 +01:00
Ladislav Zezula
2d3b3e11c0 + Improved patching process so that it works for Starcraft II patches
+ Removed memory leaks in file search
2014-10-07 11:23:52 +02:00
Ladislav Zezula
03380128b5 + When adding a file in the MPQ, a space used by internal MPQ files is reused 2014-08-26 10:51:32 +02:00
Ladislav Zezula
d7044aecae + Added support for newest Spazzler protector 2014-08-25 12:59:01 +02:00
Ladislav Zezula
568f189ea5 + Improved key detection for archives with large sector sizes 2014-03-14 10:17:34 +01:00
Ladislav Zezula
ebd502e0c2 + Bitmap support was moved from archive functions to FileStream functions, where are more appropriate
+ Added support for master-mirror streams (like Blizzard games do)
+ SFileGetArchiveBitmap was moved into SFileGetFileInfo
+ Fixed bug in SFileCompactArchive
+ Removed classes SFileMpqBitmapXXX from SFileGetFileInfo
2013-12-19 11:23:48 +01:00
Ladislav
fe51da468b + static analysis issues fixed 2013-12-15 10:29:50 +01:00
Ladislav Zezula
5106d34fda + Bugfixes 2013-12-09 14:51:40 +01:00
Ladislav Zezula
c34c37b341 + StormLib 9.0 BETA 2013-12-05 15:59:00 +01:00
Ladislav
870acd5827 + Adding files to MPQ no longer removes (listfile) and (attributes) when not enough space in the hash table
+ Fixes in deletion of files from MPQs v 4.0
2013-11-18 12:35:21 +01:00
Ladislav
87eb1df287 + Support for compile-time messages for deprecated symbols
+ Replaced MPQ_FILE_COMPRESSED with more descriptive MPQ_FILE_COMPRESS_MASK
2013-11-15 10:17:43 +01:00
Ladislav Zezula
a70863499e + Support for SQP and MPK archives
+ Makefiles fixed
2013-11-13 07:56:31 +01:00
Ladislav Zezula
16f2797b8c + Support for SQP files
+ Several checks added (thanks Dmitry "Vortex" Koteroff)
+ Fixed zlib
+ StormLib no longer changes "/" to "\". Hopefully this won't be problem for Linux and Mac people
2013-10-11 15:51:18 +02:00