627 Commits

Author SHA1 Message Date
Ladislav Zezula
84d48de5b5 Merge pull request #413 from ladislav-zezula/LZ_UseAfterFree
Fixed use-after-free scenarios
Added tests for these scenarios
2026-01-09 21:50:37 +01:00
Ladislav Zezula
fa6c3c43ff Typo 2026-01-09 21:48:35 +01:00
Ladislav Zezula
f32cb611a4 Fixed use-after-free scenarios 2026-01-09 21:46:59 +01:00
Ladislav Zezula
824f38907c Fixing Use After Free bugs 2026-01-09 07:55:45 +01:00
Ladislav Zezula
9ac1b0b9ac Merge pull request #408 from AMDmi3/patch-1
LGTM. Thank you for the contribution 👍
2025-11-26 13:37:24 +01:00
Dmitry Marakasov
c8236ddd2b Link tests with ALSA target properly 2025-11-24 17:45:20 +03:00
Ladislav Zezula
6a18fa77fe #included stdbool.h when necessary 2025-11-24 12:29:35 +01:00
Ladislav Zezula
d6f664519e Merge pull request #405 from divinity76/patch-2
Merged. Thanks for the contribution.
2025-11-24 10:33:48 +01:00
Ladislav Zezula
87474f5fc5 Got rid of '#define bool char' 2025-11-24 08:47:07 +01:00
divinity76
897366f4c6 stricter silence
if we do default:, it may silence a real error in the future
2025-11-24 04:15:53 +01:00
divinity76
89a364c8bb silence -Wswitch-enum
compiling with clang, https://clang.llvm.org/docs/DiagnosticsReference.html#wswitch-enum

```
/home/hans/projects/StormLib/src/SFileOpenArchive.cpp:539:16: warning: 4 enumeration values not handled in switch: 'MapTypeNotChecked', 'MapTypeNotRecognized', 'MapTypeAviFile'... [-Wswitch]
        switch(MapType)
               ^~~~~~~
1 warning generated.
```
2025-11-24 04:10:01 +01:00
Ladislav Zezula
2aa6216c65 Creating a new release v9.31 2025-11-22 09:03:42 +01:00
Ladislav Zezula
7a5ff0a00f Added Legion TD map to the tests 2025-10-26 10:14:19 +01:00
Ladislav Zezula
07559b3220 Fixed opening of Warcraft III maps that don't have W3M header 2025-10-25 09:01:18 +02:00
Ladislav Zezula
b62de3c83f Fixed issue #400 2025-10-11 09:07:22 +02:00
Ladislav Zezula
d1aef907ff Merge pull request #399 from ladislav-zezula/LZ_FuzzingIssues
Fixed https://github.com/ladislav-zezula/StormLib/issues/397 and http…
2025-09-15 15:15:33 +02:00
Ladislav Zezula
49b619bae2 Fixed https://github.com/ladislav-zezula/StormLib/issues/397 and https://github.com/ladislav-zezula/StormLib/issues/398 2025-09-15 15:09:30 +02:00
Ladislav Zezula
249b1c0490 Merge pull request #395 from Haaxor1689/master
Thanks for the contribution. I'll run tests against the new code.
2025-08-25 20:11:44 +02:00
Haaxor1689
e6e9ad2bc8 Get nearest power of 2 for max file count before checking against current count 2025-08-25 19:31:53 +02:00
Ladislav Zezula
519927d280 Suppress the default error messages from AlsaLib 2025-08-18 21:08:37 +02:00
Ladislav Zezula
36d76cddbf Merge pull request #393 from ladislav-zezula/LZ_BlizzardCompatibleNames
* Replaced GetLastError with SErrGetLastError
* Members of TMPQHash have now the same names like in Blizzard sources
* Fixed bug in SFileRenameFile that falsely reported an existing file if it had different locale.
2025-08-06 09:38:55 +02:00
Ladislav Zezula
db410fd564 Fixed renaming files vs file locale 2025-08-06 09:34:58 +02:00
Ladislav Zezula
65582d5649 Added build for x86 2025-07-03 09:35:08 +02:00
Ladislav Zezula
8d35b981c6 Fixed Linux build 2025-07-03 09:33:14 +02:00
Ladislav Zezula
486a7dd29f Replaced GetLastError with SErrGetLastError 2025-07-03 09:27:16 +02:00
Ladislav Zezula
b41cda40f9 Merged. Thanks for the contribution 👍
Win: Only define NOMINMAX if it's not already defined
2025-06-13 21:45:29 +02:00
Slayer95
8b47034a1f Win: Only define NOMINMAX if it's not already defined
Makes it easier to add StormLib as a dependency
2025-06-13 14:38:35 -05:00
Ladislav Zezula
d9af787697 Cosmetics 2025-06-03 10:29:52 +02:00
Ladislav Zezula
630de2ee19 Fixed bug in test program that caused bad cosmetic effects during log print 2025-06-02 20:28:39 +02:00
Ladislav Zezula
0ce73c5b46 Fixed 2025-05-30 20:39:34 +02:00
Ladislav Zezula
7acd704ad0 Merge pull request #382 from cen1/feature/ci
CMake modernization, basic CI, release artefacts, readme
2025-05-26 20:22:44 +02:00
cen1
4b38800ab7 - modernize CMake by adding target_ where missing, split add_library and sources (target_sources), some reordering
- make tests it's own CMake project
- add CMake option to override hardcoded test data paths
- improve CMake documentation, document all options
- add basic CI build for Debian, Fedora and Windows
- add release pipeline to create .deb, .rpm and Windows li/dll archives
2025-05-25 19:42:45 +02:00
Ladislav Zezula
c6d89095fc Fixed wrong state in SFileAddFile 2025-04-28 13:55:45 +02:00
Ladislav Zezula
774c390223 Regression tests 2025-04-24 19:03:50 +02:00
Ladislav Zezula
a50eaacb13 Fixed bug in verifying signatures on MPQs version 2 2025-04-24 11:43:27 +02:00
Ladislav Zezula
c9620d7824 Fixed more bugs from POCs 2025-04-22 22:40:25 +02:00
Ladislav Zezula
4f4e2154cd Added check for loading CRC table 2025-04-20 21:16:05 +02:00
Ladislav Zezula
da046e71d9 Merge pull request #379 from pionere/invpar
ensure lasterror is set when SCompDecompress2 fails
2025-03-03 09:44:14 +01:00
pionere
4db2b41807 ensure lasterror is set when SCompDecompress2 fails 2025-03-02 12:25:47 +01:00
Ladislav Zezula
8152dc452d Merge pull request #378 from pionere/hashpow
validate dwHashTableSize
2025-03-02 09:25:32 +01:00
pionere
ac9be1ae60 validate dwHashTableSize
- dwHashTableSize must be a power of two, otherwise HASH_INDEX_MASK does not work
2025-03-01 13:02:16 +01:00
Ladislav Zezula
17afc22d0a Merge pull request #377 from pionere/sofree
Merged. Thanks for the bugfix.
2025-02-28 10:43:09 +01:00
pionere
786f74bd30 free/release SectorOffsets of TMPQFile in AllocateSectorOffsets 2025-02-28 10:08:19 +01:00
Ladislav Zezula
626c49312d Minors 2025-02-26 20:56:05 +01:00
Ladislav Zezula
02616bbabc Merge pull request #376 from pionere/arch_zero
Merged. Thanks for the contribution 👍
2025-02-26 20:54:25 +01:00
pionere
8e1f843c94 fix crash when the allocation of pbHeaderBuffer fails 2025-02-26 16:10:49 +01:00
Ladislav Zezula
e01d93cc8a Replaced afxres.h with winres.h 2024-12-06 16:23:35 +01:00
Ladislav Zezula
445f48d0d9 Full support of printing UTF-8 characters to Windows console 2024-12-04 10:54:48 +01:00
Ladislav Zezula
d1bf5e1c71 Changed behavior of patched files with MPQ_FLAG_DELETE_MARKER 2024-12-04 09:16:28 +01:00
Ladislav Zezula
e10150c8c3 Updated build settings 2024-11-19 09:04:36 +01:00