-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
[3.4] bpo-33001: Prevent buffer overrun in os.symlink (GH-5989) #5992
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
@larryhastings FYI, but I'm still testing this one (don't keep VS 2010 handy these days, so it'll be a few hours). Don't rush to merge it |
So I'm skipping the test on 3.4, because the (older) CRT will abort the process on a buffer overrun with the newer methods. I've confirmed that it's definitely a safe abort, but we don't have any way to do this within the process or test suite, so skipping the test but leaving it in there as a reference seems like the best option. |
} | ||
|
||
/* Is this path absolute? */ | ||
static int | ||
_is_absW(const WCHAR *path) | ||
{ | ||
return path[0] == L'\\' || path[0] == L'/' || path[1] == L':'; | ||
return path[0] == L'\\' || path[0] == L'/' || | ||
(path[0] && path[1] == L':'); |
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.
Ouch! ;-)
@larryhastings: Please replace |
https://bugs.python.org/issue33001