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 hfuru, vstinner
Date 2010-11-10.14:27:36
SpamBayes Score 4.139428e-05
Marked as misclassified No
Message-id <1289399368.31.0.51116551548.issue10308@psf.upfronthosting.co.za>
In-reply-to
Content
r86399 fixes the code checking PyUnicode_AsWideChar() failure.

The following change is useless, it cannot overflow:

-    if (n + k > MAXPATHLEN)
+    if (k > MAXPATHLEN - n)
         k = MAXPATHLEN - n;

n and k maximum values are MAXPATHLEN (and the maximum value of MAXPATHLEN is 4096), whereas n and k type maximum values are at least 2^31.
History
Date User Action Args
2010-11-10 14:29:28vstinnersetrecipients: + vstinner, hfuru
2010-11-10 14:29:28vstinnersetmessageid: <1289399368.31.0.51116551548.issue10308@psf.upfronthosting.co.za>
2010-11-10 14:27:36vstinnerlinkissue10308 messages
2010-11-10 14:27:36vstinnercreate