2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-28 15:45:46 +03:00
Commit Graph

791 Commits

Author SHA1 Message Date
s1lent
84ac04bc0d
Steam: up-to-date description of the game 2019-09-21 23:20:33 +07:00
s1lent
d870d6bac9 PF_CreateInstancedBaseline: fixed wrong check bounds. (Fixes #685) 2019-09-13 07:03:52 +07:00
Dominik Szamburski
bf58a0206d Fix _vsnprintf on windows (#720)
* use _vsnprintf_s on windows
2019-09-11 00:36:37 +07:00
s1lent
262f443404
COM_ParseLine: Turn on preprocessor REHLDS_FIXES. Related #67 2019-09-06 00:03:18 +07:00
s1lent
4e4690bd6b
Reworked COM_FileExtension for consider some case. 2019-08-30 06:07:00 +07:00
s1lent
6520ab54b0
Reworked COM_FileExtension (Fixed #716) 2019-08-29 01:29:18 +07:00
s1lent
5b6856876e
HLTV-Core: Increased rates threshold 2019-08-11 23:27:16 +07:00
Karaulov
2713dfaae2 Small update sv_use_entity_file (#708)
Now if sv_use_entity_file set to 1, don't create new .ent files, use only exist.
2019-08-11 20:35:37 +07:00
Dmitry Tsarevich
0232d99726 Catch crashes and write minidumps on windows (#703)
* Catch crashes and write minidumps on windows
* Allow to enable/disable writing mini dumps as in other Source games
* Fix gradle build - write minidumps
* Appends application version to mini dump name

Makes easier to reproduce issues via mini dumps.

New mini dump file name format:
<exe name>_<app version>_crash_<date YYYYMMDD>_<time HHMMSS>_<unique counter>.mdmp
Example:
hlds_3.6.0.675-dev+m_crash_20190702_005019_1.mdmp
2019-08-11 19:44:06 +07:00
s1lent
f01bfdcdcb
net_chan: Cleanup
Netchan_CopyFileFragments: Fixed a potential possible case to segfault
2019-08-11 17:35:27 +07:00
s1lent
7c5dc890df
HLTV: Increased rates threshold for recording demofile, rate 100k and updaterate up to 100 2019-08-11 03:26:52 +07:00
s1lent
361185ffbc
Fixed DEFAULT_RATE - wrong default value (Reversing thing mistake) 2019-08-11 03:24:10 +07:00
s1lent
f3ae0987b9
SV_HandleClientMessage_api: loop break when got invalid message (as default behavior) 2019-08-11 03:23:44 +07:00
s1lent
ed0e4fedcf
PreBuild.bat: Fix generate overrun number of build built from msvc 2019-08-11 03:01:27 +07:00
s1lent
084bd023d2
ReHLDS API: Extending api 2019-08-11 03:01:01 +07:00
Shorohov Sergey
9f7be106ed Add toolset for VS 19 (#712)
* Add toolset for VS 19
2019-08-10 21:00:37 +07:00
s1lent
0c28b707a0
SV_EmitSound2: check player to fakeclient and active. Closes s1lentq/reapi#137 2019-07-31 00:01:39 +07:00
s1lent
b4ddf0bbd3
Send fake build number in S2C_CONNECTION packet 2019-07-30 23:30:38 +07:00
s1lent
a0926eda44
HLTV: Closed #657
HLDS: Moved check to limit of leafs into SV_SpawnServer function.
2019-07-30 23:20:05 +07:00
Karol Szuster
0c8d3d76ac Fix for range loop in CUtlVector (#697)
* Fix for range loop

* Reallocate memory only if needed
2019-06-06 00:31:06 +07:00
Karaulov
3f809d018a Simple entity editor (#694)
Ability to load entites from separate file instead of map content.
Added sv_use_entity_file cvar to toggle entites loading source.
2019-05-07 17:52:00 +05:00
s1lent
998f17263e
[api] Added MSG_* funcs
[rehlsdk] Added missing platform.h
Bump minor version
2019-04-30 22:08:02 +07:00
namazso
f6822e30ea fix buffer overflow (#687) 2019-03-30 01:21:09 +07:00
theAsmodai
89be2166ee
Merge pull request #660 from dreamstalker/cll_hookchain
Add hookchain for connectionless limiter
2018-09-29 12:47:42 +03:00
theAsmodai
2444c9fe15
Merge pull request #659 from dreamstalker/ipbans_check
Optimize check for bans by ip
2018-09-29 12:47:34 +03:00
Asmodai
c2d311c6df Add hookchain for connectionless limiter 2018-09-27 01:04:19 +03:00
Asmodai
93222402b8 Optimize check for bans by ip 2018-09-26 23:48:10 +03:00
theAsmodai
83f53fb5c5
Merge pull request #652 from WPMGPRoSToTeMa/fix-net-queuepacket-workflow
Fixed NET_QueuePacket workflow
2018-09-19 13:46:45 +03:00
theAsmodai
4abeb0c8b5
Merge pull request #653 from dreamstalker/chal_api
Reworked SV_CheckChallenge_api function
2018-09-15 13:00:34 +03:00
Asmodai
834c5a9eda Reworked SV_CheckChallenge_api function 2018-09-15 12:21:01 +03:00
WPMGPRoSToTeMa
d15ebf6df2 Fixed NET_QueuePacket workflow 2018-09-15 00:16:19 +03:00
s1lent
469908f5c5
Fix #483 2018-09-03 18:04:47 +07:00
s1lent
237ee46464
SV_WriteId_f, DemoFile::StartRecording: Enforce certain extensions be used for files (*.dem, *.cfg) and prevent certain path characters from being used in commands
SV_CheckForDuplicateNames: revert checks (default behavior hlds)
2018-09-03 17:34:08 +07:00
theAsmodai
0ce0af7d0f
Merge pull request #643 from s1lentq/master
Check limits up to MAX_MODELS for precached local models (Related #633)
2018-08-11 18:04:52 +03:00
s1lent
3eed9d11e7
Check limits up to MAX_MODELS for precached local models (Related #633) 2018-08-08 14:06:03 +07:00
theAsmodai
4da8c9ebcd
Merge pull request #641 from dreamstalker/namedots
Additional check for '..' in fixed names
2018-08-06 11:36:30 +03:00
Asmodai
c7616fa283 Additional check for '..' in fixed names 2018-08-05 12:01:59 +03:00
s1lent
65c6ce593b
Bugfix: Prevent to pre-cache same local models twice and more (Affects #612) 2018-05-22 19:09:21 +07:00
theAsmodai
87a2d170ec
Merge pull request #614 from s1lentq/fligthrec-move-to-debug
Move REHLDS_FLIGHT_REC macro to debug build
2018-05-13 21:30:05 +03:00
s1lent
7fa57453ed
Move REHLDS_FLIGHT_REC macro to debug build 2018-05-10 23:05:10 +07:00
theAsmodai
87a10a1e41
Added sv_rehlds_maxclients_from_single_ip cvar (#610)
Correctly reject overlimit connections
2018-05-07 21:24:21 +03:00
Dmitry Novikov
19c22d7538 Skipping local model to pre-cached if no entities to transmit. (#612)
* Skipping local model to pre-cached if no entities to transmit.
2018-05-07 17:18:56 +03:00
s1lent
2e2b93131d
Closes #611 2018-05-07 01:44:37 +07:00
s1lent
2fa7655370
Bugfix Info_ValueForKey: Fix wrong comparison 2018-05-06 13:35:57 +07:00
theAsmodai
f324df867f
Info code refactoring (#604)
* info.cpp refactoring
* Update info unittests
* Make _vgui_menus important and fix tests passing
2018-05-04 23:37:53 +03:00
theAsmodai
97868baf92
Merge pull request #581 from dreamstalker/hltv_frag_validation
Add fragments validation to hltv
2018-05-04 23:37:18 +03:00
theAsmodai
5fdafc1f3e
Merge pull request #597 from IgnacioFDM/patch-1
Dummy assignment?
2018-04-28 12:50:09 +03:00
Alik Aslanyan
ce163a323b
Fixes for new exploit involving " in info strings. (#596)
* Refactor SV_CheckForDuplicateNames

* Refactor and fix Info_IsValid
2018-04-06 20:11:38 +04:00
IgnacioFDM
ec63e8f162
Dummy assignment? 2018-04-03 14:27:19 -03:00
IgnacioDM
19e3a5df56 Fix (Re)HLDS exploit (Can't use keys or values with a ")
Assume two clients connect with the following string

```connect 48 12345678  \prot\2\unique\-1\raw\261578371d95a424925835ca44f82811   \cl_lw\1\cl_lc\1\*hltv\1\rate\10000\cl_updaterate\20\hspecs\0\hslots\0\hdelay\30\name\test"```

Name will be parsed as ```test"```

Then in ```SV_CheckForDuplicateNames```, ```Info_SetValueForKey``` will fail because of the quotes, and an infinite loop will occur.

I also added a check for ```\```, altough it's technically impossible to appear, it never hurts to be extra careful with this kind of client input.

TODO (by others sorry, really busy atm):
- Fix ```COM_Parse``` so that you can't inject quote marks. Other exploits may currently exist that also rely on this bug.
2018-04-01 19:11:44 +04:00