Skip to content

TerrainTex: Add NULL checks for RGB data to prevent crashes - #67

Draft
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-terrain-tex-null-checks
Draft

TerrainTex: Add NULL checks for RGB data to prevent crashes#67
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-terrain-tex-null-checks

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-F0. The issue was that: Missing terrain texture file causes uninitialized TileData pointer to be dereferenced, resulting in NULL pixel data pointer and access violation.

  • Added NULL checks after calling getRGBDataForWidth in TerrainTex.cpp to prevent crashes when the function returns NULL, indicating corrupted tile data.
  • Added a NULL initialization loop in WorldHeightMap.cpp to ensure all tiles for a texture class are NULL if the texture file fails to open, preventing crashes when rendering tries to use uninitialized data.

This fix was generated by Seer in Sentry, triggered by x64-dev. 👁️ Run ID: 1901589

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