Skip to content

NGMP: Add null check for pCurrentGame before accessing its slots - #70

Draft
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/ngmp-null-check-current-game
Draft

NGMP: Add null check for pCurrentGame before accessing its slots#70
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/ngmp-null-check-current-game

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-C6. The issue was that: NextGenTransport::doSend dereferenced a null global game pointer returned by GetCurrentGame, causing an access violation when calling getSlot.

  • Added a null check for pCurrentGame before attempting to access its slots using getSlot(m_outBuffer[i].addr). This prevents potential crashes if pCurrentGame is a null pointer.

This fix was generated by Seer in Sentry, triggered by x64-dev. 👁️ Run ID: 1901055

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