-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-86179: Avoid making case-only changes when calculating realpath() during initialization #113077
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
Conversation
zooba
commented
Dec 14, 2023
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: venv on Windows with symlinks is broken if invoked with -I #86179
…ath() during initialization
!buildbot windows |
🤖 New build scheduled with the buildbot fleet by @zooba for commit a56fac8 🤖 The command will test the builders whose names match following regular expression: The builders matched are:
|
@@ -535,7 +540,11 @@ getpath_realpath(PyObject *Py_UNUSED(self) , PyObject *args) | |||
len -= 4; | |||
} | |||
} | |||
result = PyUnicode_FromWideChar(p, len); | |||
if (CompareStringOrdinal(path, (int)pathlen, p, len, TRUE) == CSTR_EQUAL) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can pathlen
be larger than INT_MAX?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, and if it is, we'll have failed earlier because the API can't handle more than 32K worth of path.
…ath() during initialization (pythonGH-113077)
…ath() during initialization (pythonGH-113077)
…ath() during initialization (pythonGH-113077)