Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BASE] Prevent crashing if special characters are in the launch path #2212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AdrianCassar
Copy link
Contributor

Fixes #2210

A path containing characters that cannot be converted to a multibyte string would fail and cause cxxopts to assign the cvar target to argument 0 (current process). This can be prevented by checking if wcstombs returns -1 and decrement argc to prevent cxxopts from indexing out of bounds.

A path containing characters which cannot be converted to a multibyte string would fail and cause cxxopts to assign the cvar target to argument 0
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.

Paths/filenames with special characters (Chinese, etc) can't be dragged and dropped onto Xenia
1 participant