[3.4] bpo-33001: Prevent buffer overrun in os.symlink (GH-5989) #5992
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':'); |
larryhastings
May 14, 2018
Contributor
Ouch! ;-)
Ouch! ;-)
|
@larryhastings: Please replace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
https://bugs.python.org/issue33001