Skip to content

Fix MultiByteToWideChar buffer sizing and allocation - #201

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/mb-to-wc-buffer-size
Open

Fix MultiByteToWideChar buffer sizing and allocation#201
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/mb-to-wc-buffer-size

Conversation

@seer-by-sentry

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

Copy link
Copy Markdown

Fixes CLIENT-1FG. The issue was that: Buffer size calculation error in MultiByteToWideCharSingleLine corrupts IME composition string, causing TextInputServer read access violation.

  • Correctly calculate the required wide character buffer size using MultiByteToWideChar before allocation.
  • Allocate the buffer based on the calculated size (which includes the null terminator).
  • Handle cases where MultiByteToWideChar fails or returns zero length.
  • Ensure correct null termination of the resulting wide string at the final index.

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

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