Skip to content

PartitionManager: Add safety checks to prevent null pointer dereferences - #137

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/partitionmanager-nullchecks
Open

PartitionManager: Add safety checks to prevent null pointer dereferences#137
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/partitionmanager-nullchecks

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-WK. The issue was that: PartitionManager::revealMapForPlayerPermanently accesses uninitialized m_cells array, causing an Access Violation Read (0x4).

  • Added null checks for m_cells and m_totalCellCount before accessing them in revealMapForPlayer, revealMapForPlayerPermanently, undoRevealMapForPlayerPermanently, shroudMapForPlayer, and refreshShroudForLocalPlayer functions to prevent potential crashes.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 2981246

Not quite right? Click here to continue debugging with Seer.

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.

0 participants