Don't assert on malformed broadcasts, just skip them.

This commit is contained in:
Bartosz Taudul 2020-09-20 22:27:49 +02:00
parent c1a5ef4108
commit 0a5de933c4

View File

@ -509,7 +509,7 @@ static void DrawContents()
{
auto msg = broadcastListen->Read( len, addr, 0 );
if( !msg ) break;
assert( len <= sizeof( tracy::BroadcastMessage ) );
if( len > sizeof( tracy::BroadcastMessage ) ) continue;
tracy::BroadcastMessage bm;
memcpy( &bm, msg, len );