Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TESTING: fix crash due to SZ_GetSpace console overflow #907

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

RauliTop
Copy link
Contributor

@RauliTop RauliTop commented Apr 8, 2022

More info here: #855

Also, review this: #798

@Kasou123
Copy link

Kasou123 commented May 4, 2022

help
version
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.11.0.776-devmpatch
Build date: 18:17:32 Apr 26 2022 (2936)
Build from: 3dc9f8c
SZ_GetSpace: overflow on gs-m <- russian
WARNING: datagram overflowed for gs-m <- russian

@stambeto2006
Copy link

Is there any solution to this problem with this message, and how is the problem fixed?

overflow on netchan->message

@stambeto2006
Copy link

@RauliTop Is this project expected to be implemented and fixed officially soon?

@RauliTop
Copy link
Contributor Author

@RauliTop Is this project expected to be implemented and fixed officially soon?

I really didn't test it.
I'm currently doing changes on plugins, without successful results.

You can try my request downloading the binaries on Actions tab inside this repository.
Pull request has been updated now with lastest rehlds official changes.

@Alguiencomoyo
Copy link

More info here: #855

Also, review this: #798

my servers go down with that same message I discovered that it is an attacker
even then I enter the servers to ask for money in exchange so as not to continue attacking
I have everything updated rehlds, amx, etc
and even so your proposal can solve this too?
I attach some videos of how he does it

https://www.youtube.com/watch?v=tCQ0tFdUTho

https://www.youtube.com/watch?v=Ex4n9KfUiCQ

https://www.youtube.com/watch?v=WMDZvrewaNI

@mlibre2
Copy link

mlibre2 commented Jul 15, 2023

also affects? rehlds/engine/cmd.cpp#L122

@RauliTop
Copy link
Contributor Author

also affects? rehlds/engine/cmd.cpp#L122

No, because after overflow it appears: 'on' %s
It's on the line I marked.

@mlibre2
Copy link

mlibre2 commented Jul 16, 2023

Well this problem is quite common, apparently one of the causes is the loss of the player's connection to the server. sv_timeout is a quick fix for this, but I wanted to find another one, since this cvar doesn't work quite right, so I wrote this plugin to check the communication with the player. This method has worked well for me so far, although I don't like to call a function frequently, maybe there is another more optimal way to do it, but at least it doesn't print the typical "overflow/datagram" error message to the console, which that prevents it from happening.

So far it has been ruled out that the false positives have been kicked without reason!

@anzz1
Copy link
Contributor

anzz1 commented Jan 19, 2024

This is wrong, it does not match original code.

There is no Con_NetPrintf in SZ_GetSpace in original HLDS. If this is a ReHLDS fix, it should be wrapped in #ifdef REHLDS_FIXES appropriately.

Also I don't think Con_Printf has anything to do with the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants