Skip to content

Use vsnprintf for safe debug string formatting - #216

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/debug-buffer-overflow
Open

Use vsnprintf for safe debug string formatting#216
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/debug-buffer-overflow

Conversation

@seer-by-sentry

@seer-by-sentry seer-by-sentry Bot commented Jan 4, 2026

Copy link
Copy Markdown

Fixes CLIENT-1JK. The issue was that: Wide-character wvsprintf wrote into single-byte char buffer, corrupting memory; CRT cleanup later accessed corrupted pointer via wcsnlen.

  • Replaced wvsprintf with vsnprintf for debug string formatting.
  • Ensures buffer safety by explicitly limiting the output size using sizeof(curSource), preventing potential buffer overflows.

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

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