Skip to content

TextureFilterClass: Add bounds check for texture stage in Apply - #89

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

TextureFilterClass: Add bounds check for texture stage in Apply#89
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-texture-stage-bounds

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-JZ. The issue was that: TextureFilterClass::Apply uses unvalidated stage index to access 2D filter arrays, causing array bounds violation.

  • Added a bounds check in TextureFilterClass::Apply to ensure the stage parameter is within the valid range (0 to MAX_TEXTURE_STAGES - 1).
  • This prevents potential array access violations when setting texture stage states.

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

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