Skip to content

Fix: Prevent use-after-free crash during GlobalData destruction#375

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/globaldata-destructor-cleanup
Open

Fix: Prevent use-after-free crash during GlobalData destruction#375
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/globaldata-destructor-cleanup

Conversation

@seer-by-sentry
Copy link

@seer-by-sentry seer-by-sentry bot commented Mar 8, 2026

Fixes CLIENT-3XY. The issue was that: Access violation in AsciiString::releaseBuffer due to GlobalData's std::vector<AsciiString> members destructing after memory allocator is invalid.

  • Added explicit clear() calls for all AsciiString members and vectors of AsciiStrings within the GlobalData destructor.
  • Ensures AsciiString::releaseBuffer() is called while the memory infrastructure (TheDynamicMemoryAllocator, TheAsciiStringCriticalSection) is still valid.
  • Prevents potential use-after-free crashes that could occur when GlobalData override instances are destroyed during gameplay or shutdown.

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

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