Skip to content

DX8IndexBuffer: Add null checks before using index_buffer - #113

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/dx8indexbuffer-nullchecks
Open

DX8IndexBuffer: Add null checks before using index_buffer#113
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/dx8indexbuffer-nullchecks

Conversation

@seer-by-sentry

@seer-by-sentry seer-by-sentry Bot commented Nov 6, 2025

Copy link
Copy Markdown

Fixes CLIENT-RR. The issue was that: DirectX index buffer creation failed, leaving the internal IDirect3DIndexBuffer8* member NULL, which was later dereferenced during AppendLockClass construction.

  • Added null checks for index_buffer before calling Lock and Unlock methods to prevent potential crashes if the buffer is not properly initialized or has been released.
  • Initialized index_buffer to NULL in the constructor of DX8IndexBufferClass.

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

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