[CF-Devel] client code

crossfire-devel-admin at archives.real-time.com crossfire-devel-admin at archives.real-time.com
Tue Sep 16 14:08:19 CDT 2003


>>
     
     In common/client.h, the Player_Struct has several unused fields: name,
     
     >>
     
     password, and shoottype.
     
     >
     
     
     >
     
     
     >
     
      Removing those seems to cause problems.  Are we essentially doing a
     
     memcopy
>
     
      from the server into that struct, or is there some other reason for
     
     removal
>
     
      of those unused fields to cause problems?
     
     >
     
     
     
>
     
       Can you be more specific on 'cause problems'?  I can't see any
     
     >
     
      reason for those fields to be accessed indirectly.  Could be some
     
     >
     
      buffer overflow issue with input_text, and being that these fields
     
     >
     
      are after that, they extra bytes they provide mask the problem.
     
     
It was behaving very strangely--all the statistics in the display were
unexpected values.  When I was logging in, my character name was hidden,
and my password was displayed on the screen.

I tried to recreate it, and now it works fine without those fields.

--PC



_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list