Message285294
win_readlink in Modules/posixmodule.c mistakenly treats the PrintNameOffset field of the reparse data buffer as a number of characters instead of bytes. Thus, if the offset is non-zero, the value returned is incorrect stack garbage. For example, the following should return "C:\\ProgramData":
>>> os.readlink(r'C:\Users\All Users')
'\u6c20\u3012\u041f\x01\u2768\u60b2\u031b\x02\x05\x00\u031e\x06\u8c01\u4012'
Craig Holmquist found this bug, as detailed in message 277385. He included a fix in the patch for issue 23407, but this should be addressed in the next maintenance release of 3.5 and 3.6. |
|
Date |
User |
Action |
Args |
2017-01-12 08:09:21 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, steve.dower |
2017-01-12 08:09:20 | eryksun | set | messageid: <1484208560.98.0.375529555783.issue29248@psf.upfronthosting.co.za> |
2017-01-12 08:09:20 | eryksun | link | issue29248 messages |
2017-01-12 08:09:20 | eryksun | create | |
|