Skip to content

bugfix(gameengine): Prevent crash when OCL source object is null or destroyed#437

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/ocl-invalid-source-object
Open

bugfix(gameengine): Prevent crash when OCL source object is null or destroyed#437
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/ocl-invalid-source-object

Conversation

@seer-by-sentry
Copy link
Copy Markdown

Fixes CLIENT-47D. The issue was that: Dying object's memory freed before new objects attempt to access its Contain module, causing use-after-free.

  • Added a check to ensure the sourceObj is valid (not null and not destroyed) before attempting to contain a newly created object within it.
  • If the sourceObj is invalid, the newly created object is immediately destroyed to prevent further issues.
  • Addresses potential crashes or unexpected behavior that could occur when an Object Creation List (OCL) fires from a CreateObjectDie handler and the source object is no longer valid.

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

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