This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2013-11-17.23:52:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1384732331.52.0.187694066839.issue19636@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-11-17 23:52:11vstinnersetrecipients: + vstinner
2013-11-17 23:52:11vstinnersetmessageid: <1384732331.52.0.187694066839.issue19636@psf.upfronthosting.co.za>
2013-11-17 23:52:11vstinnerlinkissue19636 messages
2013-11-17 23:52:11vstinnercreate