GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
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
Windows measures the length of path in UTF-16, but x64dbg only allocates MAX_PATH-sized buffer in UTF-8. Since a Unicode character can be larger than 1 byte, this has caused crashes of x64dbg.
will be quite hard because it's hardcoded in a bunch of places...
Also, path can be longer than legacy MAX_PATH, though not sure if it's easily fixable.
x64dbg cannot debug a folder, so that shouldn't be an issue. MAX_PATH * 3 is a safe choice since a 4-byte UTF8 character is encoded as 2 UTF16 characters.