- Harden the client and server protocol against UDP spoofing attacks. This will defend ioquake3 against http://aluigi.altervista.org/papers/q3noclient.txt (#3041)
- Retains full compatibility to the old but unsecure protocol between clients and servers - Harden the connection process against DoS attacks, possibly connected to UDP spoofing
This commit is contained in:
1 parent
06d12f6085
commit
a5580d8974
11 files changed
+296
-75
No files matched your search
@@ -962,7 +962,7 @@ int Q_CountChar(const char *string, char tocount)
|
||||
return count;
|
||||
}
|
||||
|
||||
void QDECL Com_sprintf(char *dest, int size, const char *fmt, ...)
|
||||
int QDECL Com_sprintf(char *dest, int size, const char *fmt, ...)
|
||||
{
|
||||
int len;
|
||||
va_list argptr;
|
||||
@@ -973,6 +973,8 @@ void QDECL Com_sprintf(char *dest, int size, const char *fmt, ...)
|
||||
|
||||
if(len >= size)
|
||||
Com_Printf("Com_sprintf: Output length %d too short, require %d bytes.\n", size, len);
|
||||
|
||||
return len;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user