Skip to content

Fix: Null check for sub-object name before string search in W3DModelDraw - #184

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/w3dmodeldraw-null-check
Open

Fix: Null check for sub-object name before string search in W3DModelDraw#184
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/w3dmodeldraw-null-check

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-18P. The issue was that: W3DModelDraw::hideAllHeadlights passed a NULL pointer returned by RenderObjClass::Get_Name to strstr, causing a read access violation.

  • Added a null check for the sub-object name retrieved via Get_Name() before attempting to use strstr to identify "HEADLIGHT" objects.
  • Prevents potential crashes if Get_Name() returns NULL.

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

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