[odamex-bug-reporter] [Bug 708] New: server-launcher protocol problem: player info

  • From: odamex-bugtracker@xxxxxxxxxx
  • To: odamex-bug-reporter@xxxxxxxxxxxxx
  • Date: Wed, 08 Jun 2011 10:07:38 +0000

http://odamex.net/bugs/show_bug.cgi?id=708

             Bug #: 708
           Summary: server-launcher protocol problem: player info
    Classification: Unclassified
           Product: Odamex
           Version: 0.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Server
        AssignedTo: odamex-bug-reporter@xxxxxxxxxxxxx
        ReportedBy: bond@xxxxxxxxxx


server sends to launcher player info this way (sv_sqp.cpp):

MSG_WriteByte(&ml_message, players.size());
for (size_t i = 0; i < players.size(); ++i)
{
  if (players[i].ingame())
  {... (write player data) }

so if some 'players[i].ingame()' are false, number of player records is less
then 'players.size()'. but launcher doesn't know about it and try to read all
'players.size()' records, that is more data then packet size.
example: client download wad from server - seems its 'players[i].ingame()' is
false at that period of time

-- 
Configure bugmail: http://odamex.net/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Other related posts:

  • » [odamex-bug-reporter] [Bug 708] New: server-launcher protocol problem: player info - odamex-bugtracker