engine: client: fix out of bounds access with some ticket generators
* Update MultiEmulator submodule
This commit is contained in:
parent
7da460d4b1
commit
6ab2c9dbbf
2 changed files with 3 additions and 3 deletions
2
3rdparty/MultiEmulator
vendored
2
3rdparty/MultiEmulator
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 63f9145bd03def93dae3b7fe977b78e4ab312189
|
Subproject commit 7ab212babb32d9216408af08c24fab59e6a57e19
|
|
@ -1079,12 +1079,12 @@ static void CL_WriteSteamTicket( sizebuf_t *send )
|
||||||
{
|
{
|
||||||
const char *s;
|
const char *s;
|
||||||
uint32_t crc;
|
uint32_t crc;
|
||||||
char buf[512] = { 0 };
|
char buf[768] = { 0 }; // setti and steamemu return 768
|
||||||
size_t i = sizeof( buf );
|
size_t i = sizeof( buf );
|
||||||
|
|
||||||
if( !Q_strcmp( cl_ticket_generator.string, "null" ))
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue