250 Commits

Author SHA1 Message Date
Kawe Mazidjatari
0920fb834a Fix CVE-2019-5482
Merge: curl/curl@facb0e4662
2023-06-12 21:34:01 +02:00
Kawe Mazidjatari
5e68af6eb5 Fix CVE-2019-5436
Merge: curl/curl@2576003415
2023-06-12 21:22:22 +02:00
Kawe Mazidjatari
fa05fbd1aa Fix CVE-2018-16890
Merge: curl/curl@b780b30d13
2023-06-12 20:51:12 +02:00
Kawe Mazidjatari
52d8ef5719 Fix CVE-2019-3822
Merge: curl/curl@50c9484278
2023-06-12 20:48:21 +02:00
Kawe Mazidjatari
46f11218c6 Fix 'CVE-2019-3823'
Merge: curl/curl@39df4073e5
2023-06-12 20:44:02 +02:00
Kawe Mazidjatari
a022f81bc4 Fix 'CVE-2018-16839'
Merge: curl/curl@f3a24d7916
2023-06-12 20:37:57 +02:00
Kawe Mazidjatari
1e4843fda3 Fix 'CVE-2018-14618'
Merge: curl/curl@8c7b3737d2
2023-06-12 20:27:51 +02:00
Kawe Mazidjatari
6c34f8dc4e Fix 'CVE-2018-1000301'
Merge: curl/curl@8c7b3737d2
2023-06-12 20:17:01 +02:00
Kawe Mazidjatari
2aee31375f Fix 'CVE-2018-1000122'
Merge: curl/curl@d52dc4760f
2023-06-12 20:13:24 +02:00
Kawe Mazidjatari
6069e9f00b Fix 'CVE-2018-1000121'
Merge: curl/curl@9889db0433
2023-06-12 20:09:12 +02:00
Kawe Mazidjatari
2739ff3a7d Fix 'CVE-2018-1000120'
Merge: curl/curl@535432c0ad
2023-06-12 20:06:31 +02:00
Kawe Mazidjatari
f3b27f66bb Fix 'CVE-2018-1000007'
Merge: curl/curl@af32cd3859
2023-06-12 19:56:24 +02:00
Kawe Mazidjatari
2905bcad53 Fix 'CVE-2018-1000005'
Merge: curl/curl@fa3dbb9a14
2023-06-12 19:47:37 +02:00
Kawe Mazidjatari
d000c0c3b3 Fix 'CVE-2017-8817'
Merge: curl/curl@0b664ba968
2023-06-12 19:44:01 +02:00
Kawe Mazidjatari
e48b68e870 Fix 'CVE-2017-8816'
Merge: curl/curl@7f2a1df6f5
2023-06-12 19:36:18 +02:00
Kawe Mazidjatari
bc2a6ae586 Fix 'CVE-2017-1000257'
Merge: curl/curl@13c9a9ded3
2023-06-12 19:33:12 +02:00
Kawe Mazidjatari
c6ee89d1a4 Fix 'CVE-2017-1000254'
Merge: curl/curl@5ff2c5ff25
2023-06-12 19:30:53 +02:00
Kawe Mazidjatari
e6cb575586 Fix 'CVE-2017-9502'
Merge: curl/curl@5d7952f52e
2023-06-12 19:22:14 +02:00
Kawe Mazidjatari
4368210a5c Fix 'CVE-2017-1000100'
Merge: curl/curl@358b2b131a
2023-06-12 19:13:50 +02:00
Kawe Mazidjatari
417e91b8d9 Merge recastnavigation/recastnavigation@9432fd6381 2023-05-27 16:02:48 +02:00
rexx
14e19f38ef fix compiling
compiling was broken due to some spdlog warnings being treated as errors incorrectly
2023-05-15 20:16:58 +01:00
Kawe Mazidjatari
f943fe8509 RecastMesh.cpp: Fix compiler warning
2 warnings:
Operation 'lkup[arr[i] & 0xF] | 0x8000;' returns an int, but should return a unsigned short; added explicit cast.
Operation 'arr[i] & 0xF' could read up to 64 bytes, while the stack buffer is only 16 bytes. Switched to operation: ''arr[i] & 0x3'.

The static buffer has also been declare const now.
2023-05-15 09:51:27 +02:00
Kawe Mazidjatari
310264c66d RecastMeshDetail.cpp: Fix compiler warning
Function 'updateLeftFace' is static, and when 'REVERSE_DIRECTION' is set to 1, its not getting used anywhere leading to a compiler warning as it has internal linkage with no references, and thus its getting pruned. Only define the function when 'REVERSE_DIRECTION' is 0.
2023-05-15 09:46:51 +02:00
Kawe Mazidjatari
9f44bcc818 Treat compiler warnings as errors
Treat them as errors globally. Most of the time a warning is a bug, or problem in code that could be solved in a different (better) manner. Thirdparty code have this disabled. The warnings as errors option can be globally disabled through the CMake GUI, but this is not recommended.
2023-05-15 09:44:26 +02:00
Kawe Mazidjatari
6a86ae2606 Cleanup CMakeLists files
Light cleanup in CMakeLists files. Split protocols and improve filter names.
2023-05-14 17:36:08 +02:00
Kawe Mazidjatari
0a0552d75c Fix verbose compiler warning
This is getting set from CMake now.
2023-05-14 01:21:35 +02:00
Kawe Mazidjatari
de02febdc0 Fix assert failure in netconsole caused by AddDetour
Remove extraneous register call for detour callbacks.
2023-05-13 14:05:08 +02:00
Kawe Mazidjatari
e5a455e7c7 Apply whole program optimization for certain targets
Only applied to certain targets to prevent bombing compile times; other projects don't really benefit of this.
2023-05-13 11:57:57 +02:00
Kawe Mazidjatari
8dbc2024c6 CMake code improvements
Use the 'add_module' macro to add modules without creating duplicate code. This macro also takes a reuse PCH as parameter, so modules that need a precompiled header, could reuse those from different targets that compile them. This commit also restructures the group order of the generated solution files for easier code navigation.
2023-05-13 00:14:53 +02:00
Kawe Mazidjatari
f120354e96 Initial port to CMake
* All libraries have been isolated from each other, and build into separate artifacts.
* Project has been restructured to support isolating libraries.
* CCrashHandler now calls a callback on crash (setup from core/dllmain.cpp, this can be setup in any way for any project. This callback is getting called when the apllication crashes. Useful for flushing buffers before closing handles to logging files for example).
* Tier0 'CoreMsgV' function now calls a callback sink, which could be set by the user (currently setup to the SDK's internal logger in core/dllmain.cpp).

TODO:
* Add a batch file to autogenerate all projects.
* Add support for dedicated server.
* Add support for client dll.

Bugs:
* Game crashes on the title screen after the UI script compiler has finished (root cause unknown).
* Curl error messages are getting logged twice for the dedicated server due to the removal of all "DEDICATED" preprocessor directives to support isolating projects. This has to be fixed properly!
2023-05-10 00:05:38 +02:00
Kawe Mazidjatari
381f09b1d7 CTextLogger: Skip newline characters when advancing cursor
Skip newline characters to avoid having to issue a move left/right command twice before seeing the cursor move.
2023-04-09 23:33:10 +02:00
Kawe Mazidjatari
dbf3b5b91d Improve ImGui logger API
* Better structure packing (reduced padding).
* 'CTextLogger::GetFilter' now returns a reference to 'm_itFilter'.
* Added additional setters and getters.
2023-04-09 22:35:55 +02:00
Kawe Mazidjatari
b0f94fd641 Fix compiler warnings
* Comment unused code.
* Explicitly cast input and results to/from 'toupper'.
2023-04-09 22:24:25 +02:00
Kawe Mazidjatari
a39afd4efe CTextLogger: Manage keyboard and mouse inputs
Manage them under 1 member variable.
2023-04-09 19:53:33 +02:00
Kawe Mazidjatari
d46cc0d6b1 Remove unused member variables 2023-04-09 19:37:00 +02:00
Kawe Mazidjatari
fe2bd4c4d8 Make sure only UTF-8 encoded strings are getting logged
This should fix all bugs and vulnerabilities to the ImGui console. This code has been fuzzed for hours without triggering any exceptions or assertions.
2023-04-09 19:36:30 +02:00
Kawe Mazidjatari
810870b611 Fix buffer overflow in ImGui text logger
Fix a potential buffer overflow that could be triggered by logging invalid characters to the Dear ImGui console. The incrementation of the loop control variable performed by 'UTF8CharLength' was never validated.
2023-04-09 16:15:08 +02:00
Kawe Mazidjatari
d620a7efe8 Fix compiler warnings in cppnet
Constant expressions.
2023-04-03 14:53:17 +02:00
Kawe Mazidjatari
40f065bc1d Fix warnings in cppkore 2023-04-03 14:51:45 +02:00
Kawe Mazidjatari
d8cc85da6b Fix symbol shadowing warnings
'uint' is defined in pseudodefs.h, but also in format.h. The definition in pseudodefs.h shadows the one in format.h. Since the one in format.h is local, it has been renamed to 'uinty' to avoid this behavior.
2023-04-03 01:40:21 +02:00
Kawe Mazidjatari
ae431c6ac2 /W4: Fix unreferenced symbol warnings
Fix verbose unreferenced symbol warnings.
2023-04-02 17:02:04 +02:00
Kawe Mazidjatari
7cc58a642f Rename and mark detour globals as static
Renamed to 'g_DetourVector' and 'g_DetourSet', marked as static.
2023-04-01 13:17:23 +02:00
Kawe Mazidjatari
f9c5986245 Upgrade Dear ImGui to 1.89.4
Upgrade and light restructure of ImGui directory.
2023-03-29 00:19:19 +02:00
Kawe Mazidjatari
387b24875b Downgrade 'libcurl' to 7.54.0
The game uses 7.54.0, downgraded to maintain compatibility if we ever hook curl functions.
2023-03-28 23:14:26 +02:00
Kawe Mazidjatari
654d7a97e7 Remove extraneous trailing semicolon 2023-03-28 21:18:11 +02:00
Kawe Mazidjatari
9dd34ef53a Merge recastnavigation/recastnavigation@8e9c308afd 2023-03-25 17:17:45 +01:00
Kawe Mazidjatari
cea69d3637 Merge recastnavigation/recastnavigation@3c4a34968a 2023-03-25 17:17:12 +01:00
Kawe Mazidjatari
3649f9be5c Remove old comment
This field has been reverse engineered.
2023-03-25 17:14:04 +01:00
Kawe Mazidjatari
3be9f3dd95 Use KeyValues for ImGui panel key binds
Use KeyValues instead of JSON for ImGui panel key binds. The Server Browser 'default' key has been swapped with the 'extended' one: Default = 'VK_F10', Extended = 'VK_HOME'.
2023-03-25 17:13:16 +01:00
Kawe Mazidjatari
193c5bdeba Move sdk specific cfg files to different folder
Move all SDK internal CFG's to 'cfg/system'.
2023-03-24 00:04:45 +01:00