Skip to content

HeightMap: Add safety check for vertex buffer arrays before access#123

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/heightmap-vertex-buffer-safety
Open

HeightMap: Add safety check for vertex buffer arrays before access#123
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/heightmap-vertex-buffer-safety

Conversation

@seer-by-sentry
Copy link

Fixes CLIENT-T0. The issue was that: Unsynchronized graphics resource cleanup concurrently nullifies m_vertexBufferTiles, causing HeightMapRenderObjClass::updateVB to dereference NULL and crash during WriteLockClass construction.

Adds a check to ensure that the vertex buffer arrays (m_vertexBufferTiles and m_vertexBufferBackup) are valid before accessing them. This prevents a potential race condition during resource cleanup that could lead to crashes.

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

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