engine: client: fix out of bounds access with some ticket generators

* Update MultiEmulator submodule
This commit is contained in:
Alibek Omarov 2024-10-22 02:13:30 +03:00
parent 7da460d4b1
commit 6ab2c9dbbf
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 63f9145bd03def93dae3b7fe977b78e4ab312189
Subproject commit 7ab212babb32d9216408af08c24fab59e6a57e19

View file

@ -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;
}