479 Commits
Author SHA1 Message Date
daMaex 97d48751b0 Dep/efsw: updated efsw to newest version (#23894)
(cherry picked from commit ed2c2941a74ec720c5e4db3cb33367235e6c3655)
2021-12-19 00:01:13 +01:00
daMaex 67696322ea Core: updated argon2 to latest release (#23893)
* - updated argon2 to latest release from https://github.com/P-H-C/phc-winner-argon2

- modified CMakeLists.txt to use the reference implementation on aarch64

* fixed indentation

* added ARGON2_NO_THREADS definition to argon2 library

* better indentation

(cherry picked from commit ce916165e2f47446593d2e83a23434702397918f)
2021-12-18 23:45:05 +01:00
daMaex 657fab8cb9 added jemalloc configuration to CMake for CPU_SINWAIT (#23898)
(cherry picked from commit 4bf80e2f18eabc91519526591be48bca6947a9b1)
2021-12-18 23:44:42 +01:00
jackpoz fa4830af80 Dep/Jemalloc: Update to Jemalloc 5.2.1
(cherry picked from commit 89cb584780aa936f9353fc8a2acd009c49461134)
2021-12-18 23:39:50 +01:00
Treeston 0b61c3b7b1 [3.3.5] Core/Authserver: TOTP rewrite: (PR #23633)
- Proper management commands (.account 2fa)
- Secrets can now be encrypted (set TOTPTokenSecret in .conf)
- Secret now stored in binary
- Argon2 and AES primitives
- Base32/64 support

(cherry picked from commit 4211645834c467a03c60248e80818d3607be9ea7)
2021-12-18 20:24:50 +01:00
jackpoz 8dd1f39153 Dep/Jemalloc: Update to Jemalloc 5.2.0
(cherry picked from commit 5d986f0be46bf439caf227f3c228ac1c8efddfde)
2021-12-03 22:02:24 +01:00
jackpoz aeaca00d76 Buildsystem: Fix finding VS 2019 compiled boost libs
(cherry picked from commit 3d3b7f438c6638aed998f4233b809826a3cf0f54)
2021-12-01 00:28:13 +01:00
jackpoz ad06ab5436 Dep/Recast: Update recastnavigation to https://github.com/recastnavigation/recastnavigation/commit/54bb0943e5174a71eeeca11919920f685760a4f0
(cherry picked from commit e061663508191f7782dd62c7e13b5ea804f58f67)
2021-11-26 22:44:37 +01:00
jackpoz bd0e9e7aa8 Core/MMaps: Fix infinite loop in Detour
Fix another infinite loop in Detour caused by degenerated triangles.
Check the result of some previously ignored Detour calls.
Update recastnavigation to 3a619d773deb7e3a15ee215217c825995fe71312 and apply some more custom changes

(cherry picked from commit c602220e02bed1ad76c9e60064eeec5fd97bfe80)
2021-11-24 20:34:56 +01:00
jackpoz 291ee6416c Dep/Recast: Validate input values more consistently and completely, including that points are finite
Merge https://github.com/recastnavigation/recastnavigation/pull/374 .
This should fix infinite loops happening with degenerated triangles with 0 area.
Fix #23028

(cherry picked from commit a75fbe527a9c35fd0cb2e0710a3ebed1223d5c61)
2021-11-23 23:44:00 +01:00
jackpoz b0703f943c Core/MMaps: Change infinite loop fix in Detour
Change the infinite loop fix in Detour to allow looping through all the m_nodePool nodes max once, otherwise it most likely means that we entered an infinite loop. This is currently set to 1024.

(cherry picked from commit 12e6faa0fa0cf389bcebd4a6f2220e71c697250c)
2021-11-23 22:29:58 +01:00
jackpoz 23489568db Core/MMaps: Fix infinite loop in Detour
Fix an infinite loop in Detour happening in Dalaran Sewers.
This is more of an emergency patch until we figure out why dtNodes have a circular reference (A -> B -> C -> A) happening quite often in this place

(cherry picked from commit c8ec2dd95d07e3eec00027cdb9605529a49d6475)
2021-11-23 22:28:28 +01:00
jackpoz cb8b637061 Dep/Recast: Update recastnavigation to https://github.com/recastnavigation/recastnavigation/commit/14b2631527c4792e95b2c78ebfa8ac4cd3413363
Rebuilding mmaps IS required

(cherry picked from commit 5ff88ea04aec4677f1c1d669674e5442288a25e3)
2021-11-22 00:17:11 +01:00
Shauren ae84dd2a65 Buildsystem: Configure boost to return error messages encoded using utf8 instead of whatever current system code page is on windows
(cherry picked from commit 5b4eefb6d8231db95c4ff9cb4090a27683ff3a48)
2021-11-21 15:03:48 +01:00
Treeston c977087d58 Core/Misc: Partial merge of 3.3.5-dbedit:
- Added SmartEnum.h for enum iteration, stringification, and more, courtesy of krabicezpapundeklu/smart_enum
- Moved a bunch of enums in SharedDefines.h to the new system
- Miscellaneous utility methods ported

Core/Util: Redesign SmartEnum to properly work for large
 enums (>64 entries) and play nice with IDEs (PR #22768)

(cherry picked from commit 338e8ba0fea8b4b15120c96fff15a6c4b1a52593)
(cherry picked from commit f7ca0877a3736000a6e3b4ed09ac5f08b4d8e3f0)
(cherry picked from commit 207093475a177e9fd29696e80fdd06a11324782d)
(cherry picked from commit ee68cf33921944fd3f8c188044906998cf10ff2a)
(cherry picked from commit c16d461e16f0704bb11040faff30953d33ba2188)
(cherry picked from commit f6b0d99e2c0bc22b44d6f3cfdae50cbba7d51de8)
(cherry picked from commit bc1f456125c1b6c90617a514152d69c40ce64886)
2021-11-15 21:34:03 +01:00
Aokromes d59f557523 Core/Mmaps: Revert a bad change
Closes #22470 by xvwyh

this doesn't needs to re-extract mmaps.

(cherry picked from commit 58e297da1084599fd0b1db9d51b41f45759ee12d)
2021-11-11 20:22:30 +01:00
Shauren 50381ed741 Dep/protobuf: Backport https://github.com/protocolbuffers/protobuf/pull/2337 to our embedded version 2021-10-01 18:57:17 +02:00
Shauren 203f1197b4 Build: Modernize readline finding script 2021-10-01 18:54:52 +02:00
Shauren 4e71c5b685 Dep/CascLib: Update to ladislav-zezula/CascLib@4fc4c18bd5 2021-10-01 13:47:03 +02:00
Shauren 4d153b6cb9 Build: Update FindOpenSSL.cmake and remove custom FindGit
(cherry picked from commit 77596dba67483c8050c3d3ea1c4299360fde6beb)
2021-10-01 13:02:03 +02:00
jackpoz 501bb9dc67 Dep/Jemalloc: Update to Jemalloc 5.1.0
(cherry picked from commit 8fe74bf0f90aab0b23d5ff21079cba4201bb4fdf)
2021-09-26 20:50:35 +02:00
Shauren b70f34b696 Dep/CascLib: Update to ladislav-zezula/CascLib@37a948bdb5 2021-06-27 20:20:51 +02:00
Shauren fb6c1dc295 Dep/bzip2: Remove dependency 2021-05-15 02:14:37 +02:00
jackpoz e9e59e0861 Dep/Jemalloc: Enable MADV_FREE if available
(cherry picked from commit 10ad43916fb67eaf59c5a676c83b36ec8506beec)
2021-02-25 18:50:55 +01:00
jackpoz ba953eb6ac Dep/Jemalloc: Temporarily disable MADV_FREE
Temporarily disable MADV_FREE until CMake file is modified to check if MADV_FREE is available on the current system.
This fixes the build on older systems.

(cherry picked from commit 0f6feb828baf17522a001eddb51495f5ad397444)
2021-02-25 18:50:55 +01:00
jackpoz 65f4666063 Dep/Jemalloc: Update to Jemalloc 5.0.1
(cherry picked from commit 92cd9bd70db460fdce4af0596cf9d8ee3c3abad5)
2021-02-15 19:13:25 +01:00
Shauren 0748d4443d Dep/jemalloc: Fixed valgrind intergration
(cherry picked from commit a422dad8702c779b5665891d9e651aef575f33f7)
2021-02-15 19:13:25 +01:00
jackpoz 367e9f210e Dep/Jemalloc: Update to Jemalloc 4.0.4
(cherry picked from commit cc6dec72863a771da0c0f3ab3d32f75d7ce863bd)
2021-02-15 19:13:25 +01:00
Aokromes a9edd9dc47 Update CMakeLists.txt
(cherry picked from commit 11beb4b6e1e63156774a42e5cfc63f17bdccc3ad)
2021-02-15 19:13:25 +01:00
jackpoz 159aa97d72 Dep/Recast: Update recastnavigation to https://github.com/recastnavigation/recastnavigation/commit/2c85309280dbc9c82029e7ab16dfb01b9235c74e
(cherry picked from commit 7ef22e43057080926685eb45f0fce3f2f3d58c61)
2021-02-15 19:13:25 +01:00
jackpoz a68ab3241a Core/Misc: Fix static analysis issues
(cherry picked from commit 7e73f5f1edd8c99c3639e2a342cf044f6192fb6a)
2021-02-06 21:41:51 +01:00
jackpoz c44478664a Dep/G3D: Add static assert checks for Array functions being used with non-POD types
(cherry picked from commit f017b1d470aec0ca4918e059343d57de99fb2254)
2021-02-06 21:41:51 +01:00
Shauren 6b6d5aff05 Dep/CascLib: Update to ladislav-zezula/CascLib@737a8705b5 2020-12-08 18:16:46 +01:00
Shauren 50a64ccd1e Core/Misc: Revert back to using boost::regex, std::wregex doesn't work for name validation
Closes #20094

(cherry picked from commit 6691e41873f255c0f303229b0bd2e5db77a3c879)
2020-08-22 13:21:55 +02:00
Shauren 8c4e6c5e14 Build: Fix gcc pch builds 2020-06-20 13:03:13 +02:00
Shauren 161944b764 Build system: Removed hard requirement on BOOST_ROOT being set as environment variable, it can now be also passed as command line argument to cmake and fix compile warning with boost 1.73 2020-05-30 17:43:56 +02:00
Shauren ea812fec11 Dep/CascLib: Update to ladislav-zezula/CascLib@0a05c59eb8 2020-05-07 14:39:40 +02:00
Shauren d669f46b6d Build system: Fixed PCH with MSVC & Ninja generator 2020-04-16 18:52:55 +02:00
Aokromes b0bf1275ee New Year 2020-01-02 06:44:10 +01:00
Shauren c7b4157437 Dep/CascLib: Update to ladislav-zezula/CascLib@2257774940 2019-10-29 19:01:39 +01:00
Shauren b983769a9d Core/Build: Fix build with boost 1.71
(cherry picked from commit 9f7cc32c6ecd83acce1e8817a9ad3f060121831d)
2019-09-14 14:26:52 +02:00
Naios 5add0c004e Dep: Use the anonymous namespace free definition of boost::none.
* Fixes MSVC linking errors after the recent changes:

    "class boost::none_t const & const boost::`anonymous namespace'
    ::none" (?none@?A0x518851d0@boost@@3AEBVnone_t@2@EB)
    already defined in scripts_commands.lib...

* Sets the required version of boost on windows to 1.66
  according to the wiki.

(cherrypicked from 3da60f84000bd7ffa5a1516839b84cdee4764448)
2019-08-17 20:04:14 +02:00
ariel- 38ea7154ad Core/Dep: update zlib to 1.2.11
Changelog:

Changes in 1.2.11 (15 Jan 2017)
- Fix deflate stored bug when pulling last block from window
- Permit immediate deflateParams changes before any deflate input

Changes in 1.2.10 (2 Jan 2017)
- Avoid warnings on snprintf() return value
- Fix bug in deflate_stored() for zero-length input
- Fix bug in gzwrite.c that produced corrupt gzip files
- Remove files to be installed before copying them in Makefile.in
- Add warnings when compiling with assembler code

Changes in 1.2.9 (31 Dec 2016)
- Fix contrib/minizip to permit unzipping with desktop API [Zouzou]
- Improve contrib/blast to return unused bytes
- Assure that gzoffset() is correct when appending
- Improve compress() and uncompress() to support large lengths
- Fix bug in test/example.c where error code not saved
- Remedy Coverity warning [Randers-Pehrson]
- Improve speed of gzprintf() in transparent mode
- Fix inflateInit2() bug when windowBits is 16 or 32
- Change DEBUG macro to ZLIB_DEBUG
- Avoid uninitialized access by gzclose_w()
- Allow building zlib outside of the source directory
- Fix bug that accepted invalid zlib header when windowBits is zero
- Fix gzseek() problem on MinGW due to buggy _lseeki64 there
- Loop on write() calls in gzwrite.c in case of non-blocking I/O
- Add --warn (-w) option to ./configure for more compiler warnings
- Reject a window size of 256 bytes if not using the zlib wrapper
- Fix bug when level 0 used with Z_HUFFMAN or Z_RLE
- Add --debug (-d) option to ./configure to define ZLIB_DEBUG
- Fix bugs in creating a very large gzip header
- Add uncompress2() function, which returns the input size used
- Assure that deflateParams() will not switch functions mid-block
- Dramatically speed up deflation for level 0 (storing)
- Add gzfread(), duplicating the interface of fread()
- Add gzfwrite(), duplicating the interface of fwrite()
- Add deflateGetDictionary() function
- Use snprintf() for later versions of Microsoft C
- Fix *Init macros to use z_ prefix when requested
- Replace as400 with os400 for OS/400 support [Monnerat]
- Add crc32_z() and adler32_z() functions with size_t lengths
- Update Visual Studio project files [AraHaan]

(cherrypicked from d93901837101b369e298155133b5add43f50545b)
2019-08-17 20:04:14 +02:00
Shauren cd720efbfa Dep/CascLib: Update to ladislav-zezula/CascLib@b91f87c770 2019-08-10 19:01:24 +02:00
Shauren 6f7ef6e3f0 Dep/CascLib: Update to ladislav-zezula/CascLib@b802391cfb 2019-07-14 19:20:45 +02:00
Shauren 658a79d94a Dep/CascLib: Update to ladislav-zezula/CascLib@c588b7bf53 2019-06-19 19:58:31 +02:00
Shauren 138e822d85 Dep/CascLib: Update to ladislav-zezula/CascLib@03a3bcaed2 2019-06-09 21:14:42 +02:00
Shauren c4f1144754 Build: Fixed VS always triggering a full build when PCH is enabled, even if only a source file was edited
(cherry picked from commit 9b1dfe5e5e968c6ee3a2682ae2106735daeccbd7)
(cherry picked from commit b64583b7c14da408b34d2c92a02e5529594ef181)
2019-06-08 18:12:28 +02:00
Shauren 3bf084c70e Warning fix 2019-06-08 17:22:54 +02:00
Shauren 0857c033e9 Build: Fix casc CmakeLists.txt 2019-06-08 17:19:34 +02:00