Message203232
posix__getfullpathname():
- char outbuf[MAX_PATH*2];
+ char outbuf[MAX_PATH];
...
- wchar_t woutbuf[MAX_PATH*2], *woutbufp = woutbuf;
+ wchar_t woutbuf[MAX_PATH], *woutbufp = woutbuf;
I don't know what "*2" was used here, probably a mistake with sizeof(wchar_t)=2? (try to allocate bytes, where the length is a number of wide characters)
posix__getvolumepathname() is new in Python 3.4, so not need to backport its fix.
path_converter():
length = PyBytes_GET_SIZE(bytes);
#ifdef MS_WINDOWS
- if (length > MAX_PATH) {
+ if (length > MAX_PATH-1) {
FORMAT_EXCEPTION(PyExc_ValueError, "%s too long for Windows");
Py_DECREF(bytes);
return 0;
I don't know if this fix should be backported to Python 3.3. |
|
Date |
User |
Action |
Args |
2013-11-17 23:52:11 | vstinner | set | recipients:
+ vstinner |
2013-11-17 23:52:11 | vstinner | set | messageid: <1384732331.52.0.187694066839.issue19636@psf.upfronthosting.co.za> |
2013-11-17 23:52:11 | vstinner | link | issue19636 messages |
2013-11-17 23:52:11 | vstinner | create | |
|