mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: client: fix out of bounds access with some ticket generators
* Update MultiEmulator submodule
This commit is contained in:
2
3rdparty/MultiEmulator
vendored
2
3rdparty/MultiEmulator
vendored
Submodule 3rdparty/MultiEmulator updated: 63f9145bd0...7ab212babb
@@ -1079,12 +1079,12 @@ static void CL_WriteSteamTicket( sizebuf_t *send )
|
||||
{
|
||||
const char *s;
|
||||
uint32_t crc;
|
||||
char buf[512] = { 0 };
|
||||
char buf[768] = { 0 }; // setti and steamemu return 768
|
||||
size_t i = sizeof( buf );
|
||||
|
||||
if( !Q_strcmp( cl_ticket_generator.string, "null" ))
|
||||
{
|
||||
MSG_WriteBytes( send, buf, sizeof( buf ));
|
||||
MSG_WriteBytes( send, buf, 512 ); // specifically 512 bytes of zeros
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user