Prevent buffer overflows when using streams

This commit is contained in:
Chris Cowan 2025-06-27 19:27:22 -07:00 committed by Ricardo Luís Vaz Silva
commit ab7b1642bc
18 changed files with 600 additions and 388 deletions

View file

@ -667,7 +667,7 @@ static void HandleReply(player_t *player, bool isconsole, int nodenum, int reply
//
//============================================================================
void P_ConversationCommand (int netcode, int pnum, uint8_t **stream)
void P_ConversationCommand (int netcode, int pnum, TArrayView<uint8_t>& stream)
{
player_t *player = &players[pnum];