Skip to content

bugfix(compat): Improve WideCharToMultiByte reliability and query mode#438

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/widechar-to-multibyte-compat
Open

bugfix(compat): Improve WideCharToMultiByte reliability and query mode#438
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/widechar-to-multibyte-compat

Conversation

@seer-by-sentry
Copy link
Copy Markdown

Fixes CLIENT-1H7. The issue was that: Null or invalid wide-character pointer passed to wcstombs during browser initialization causes read access violation.

  • Replaced the WideCharToMultiByte macro with an inline function.
  • Implemented proper handling for the "query mode" where the required buffer size is queried.
  • Addressed unreliability of wcstombs(nullptr, wcstr, 0) on certain CRT implementations (e.g., MinGW).
  • Added checks for null wide character strings and wcstombs conversion errors.

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

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