Skip to content

ScriptEngine: Check for NULL object pointer before returning from GetNamedObject#124

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix-scriptengine-null-object
Open

ScriptEngine: Check for NULL object pointer before returning from GetNamedObject#124
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix-scriptengine-null-object

Conversation

@seer-by-sentry
Copy link

Fixes CLIENT-T7. The issue was that: ScriptEngine returned a stale pointer from its named object cache, leading to an Access Violation Read at offset 0x14 when dereferencing the invalid object.

  • Added a check in GetNamedObject to ensure the object pointer is valid before returning it.
  • If the object has been deleted (pointer is NULL), GetNamedObject now returns NULL instead of a dangling pointer.

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

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

Comments