Skip to content

Fix: Prevent null dereference on failed dynamic vertex buffer allocation#372

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

Fix: Prevent null dereference on failed dynamic vertex buffer allocation#372
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/dx8-vb-alloc-null-deref

Conversation

@seer-by-sentry
Copy link

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

Fixes CLIENT-3XA. The issue was that: Dynamic vertex buffer allocation fails, returning nullptr, which is then dereferenced in WriteLockClass constructor without null checking.

  • Added checks to handle cases where dynamic vertex buffer allocation might fail.
  • Ensures that Lock and Unlock operations are not attempted on a null vertex buffer.
  • Prevents potential crashes or undefined behavior if _DynamicDX8VertexBuffer is not successfully created.

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

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