Skip to content

W3DTreeBuffer: Move startVertex declaration to avoid potential out-of-bounds write - #42

Merged
x64-dev merged 1 commit into
mainfrom
seer/fix-tree-buffer-overflow
Oct 10, 2025
Merged

W3DTreeBuffer: Move startVertex declaration to avoid potential out-of-bounds write#42
x64-dev merged 1 commit into
mainfrom
seer/fix-tree-buffer-overflow

Conversation

@seer-by-sentry

@seer-by-sentry seer-by-sentry Bot commented Oct 5, 2025

Copy link
Copy Markdown

Fixes CLIENT-EH. The issue was that: Tree's vertex index was set before buffer capacity check, causing out-of-bounds write when animating tree was skipped during buffer population.

  • Moved the declaration of startVertex to be inside the if block that checks for sufficient space in the index buffer.
  • This prevents startVertex from being initialized when there isn't enough space, avoiding a potential out-of-bounds write when it's later used to update the vertex and index buffers.

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

Not quite right? Click here to continue debugging with Seer.

@x64-dev
x64-dev marked this pull request as ready for review October 10, 2025 21:18
@x64-dev
x64-dev merged commit ac66407 into main Oct 10, 2025
3 checks passed
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.

1 participant