Skip to content

bugfix(mapcache): Fix potential null dereference when parsing map names#470

Merged
x64-dev merged 1 commit into
mainfrom
seer/fix/mapcache-null-backslash
May 7, 2026
Merged

bugfix(mapcache): Fix potential null dereference when parsing map names#470
x64-dev merged 1 commit into
mainfrom
seer/fix/mapcache-null-backslash

Conversation

@seer-by-sentry
Copy link
Copy Markdown

Fixes CLIENT-4DE. The issue was that: reverseFind returning NULL, then adding 1, creates invalid 0x1 pointer, causing AsciiString::set to crash.

  • Added a check for the return value of name.reverseFind('\\').
  • If no backslash is found, the full map name string is used as the display name.
  • Prevents a potential crash or undefined behavior when map names do not contain directory separators.

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

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

@x64-dev x64-dev merged commit 56c8dc4 into main May 7, 2026
5 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