Message120918
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. |
|
Date |
User |
Action |
Args |
2010-11-10 14:29:28 | vstinner | set | recipients:
+ vstinner, hfuru |
2010-11-10 14:29:28 | vstinner | set | messageid: <1289399368.31.0.51116551548.issue10308@psf.upfronthosting.co.za> |
2010-11-10 14:27:36 | vstinner | link | issue10308 messages |
2010-11-10 14:27:36 | vstinner | create | |
|