Skip to content

Core/Pets: Correct SMSG_PET_SLOT_UPDATED - #471

Merged
Ovahlord merged 1 commit into
The-Cataclysm-Preservation-Project:masterfrom
gonzo1247:PetStableFix
Jul 6, 2026
Merged

Core/Pets: Correct SMSG_PET_SLOT_UPDATED#471
Ovahlord merged 1 commit into
The-Cataclysm-Preservation-Project:masterfrom
gonzo1247:PetStableFix

Conversation

@gonzo1247

Copy link
Copy Markdown
Contributor

Large pet GUIDs can cause a client crash when moving a pet from the stable to the call list or vice versa.

After researching and reverse-engineering the handling of the incoming SMSG_PET_SLOT_UPDATED packet in the client, I determined that the field order was incorrect.

With the previous field order, the client interpreted the pet GUID as the slot index, which could result in an out-of-bounds access when the GUID was too large.

Tests performed: (Does it build, tested in-game, etc)

  • Successfully built.
  • Tested in-game by moving pets from the stable to the call list and vice versa.
  • The client no longer crashed.

@Ovahlord
Ovahlord merged commit 3d13b2a into The-Cataclysm-Preservation-Project:master Jul 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants