Skip to content

Fix potential crash in WideCharStringToMultiByte with null or empty input - #212

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

Fix potential crash in WideCharStringToMultiByte with null or empty input#212
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/string-conversion-null-check

Conversation

@seer-by-sentry

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

Copy link
Copy Markdown

Fixes CLIENT-1HT. The issue was that: WideCharStringToMultiByte dereferences null pointer passed from uninitialized UnicodeString::str() via wcslen, causing access violation.

  • Added null pointer check for the input wide character string (orig) in WideCharStringToMultiByte.
  • Added check for an empty input string (orig[0] == 0).
  • Returns an empty string immediately if the input is null or empty to prevent crashes and unnecessary processing.

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

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