Page 1 of 1

Users being logged in as someone else?

PostPosted: Tue Oct 12, 2021 2:02 am
by orimarc
First of all, I don't know if this is the correct sub-forum, but there's something FUCKY happening. I was checking the simualted netboard thread, and I found this post (viewtopic.php?f=3&t=1964&start=330#p19355):

orimarc wrote:How is this

Code: Select all
uint64_t testGUID;
memcpy(&testGUID, &recv_data[0], recv_data.size());


returning more than 8 bytes of data? I guess if you pack the sends together this might happen. The receive class should buffer until it receives an entire packet. With the exception to the size itself. I guess I could modify that to handle random amounts of data returned.

I mean in theory if this just returned 2 bytes instead of 4

Code: Select all
   int size = 0;
   int result = 0;

   result = SDLNet_TCP_Recv(m_receiveSocket, &size, sizeof(int));


The code would fall over.


I DIDN'T WRITE THAT. So, next time you're in the forum, make sure you're not somehow logged in as another user.

Re: Users being logged in as someone else?

PostPosted: Tue Oct 12, 2021 6:53 am
by Ian
yeah it's me
I'm not sure how it happened. I was logged in as myself then it just shows your account. It's not the first time it's happened, had it once or twice before. I assume it's some kind of database bug lol

Re: Users being logged in as someone else?

PostPosted: Tue Oct 12, 2021 9:47 am
by MrThunderwing
I've seen this weird behaviour on another forum too, some guy was asking questions and it looked like they were logged in as me.