mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
Fixed possible crash caused by invalid formed CMSG_AUTH_SESSION
(cherry picked from commit 7a97e917ede5aa6135bc0565486a15b86381f5a7) Signed-off-by: tomrus88 <tomrus88@gmail.com>
This commit is contained in:
parent
e774fd3730
commit
3c7c5ba8d4
1 changed files with 2 additions and 0 deletions
|
|
@ -613,6 +613,8 @@ void WorldSession::ReadMovementInfo(WorldPacket &data, MovementInfo *mi)
|
|||
|
||||
void WorldSession::ReadAddonsInfo(WorldPacket &data)
|
||||
{
|
||||
if (data.rpos() + 4 > data.size())
|
||||
return;
|
||||
uint32 size;
|
||||
data >> size;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue