Skip to content

bugfix(collision): Prevent null dereference in PartitionManager#422

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

bugfix(collision): Prevent null dereference in PartitionManager#422
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/collision-null-deref

Conversation

@seer-by-sentry
Copy link
Copy Markdown

Fixes CLIENT-45T. The issue was that: Object destruction during collision processing leaves dangling pointers in the contact list, causing a use-after-free in Thing::isKindOf.

  • Added null checks for 'thisObj' and 'thatObj' in collision detection logic within PartitionManager.cpp.
  • Prevents potential null pointer dereferences if one or both objects involved in a collision check have been destroyed or unregistered.

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

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