Skip to content

WorldHeightMap: Add bounds checks for blendNdx to prevent crashes - #126

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-worldheightmap-blendndx-bounds
Open

WorldHeightMap: Add bounds checks for blendNdx to prevent crashes#126
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-worldheightmap-blendndx-bounds

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-TA. The issue was that: Out-of-bounds index read from m_blendTileNdxes accesses m_blendedTiles array without bounds checking, causing an access violation read.

  • Added bounds checks for blendNdx in getCliffForTileIndex and getUVForTileIndexForCliff to ensure it's within the valid range of m_numBlendedTiles.
  • If blendNdx is out of bounds, the code now treats it as if there's no blending, preventing potential crashes due to out-of-bounds access.

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

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