Message178217
On 32 bit Unix mmap() will raise ValueError("mmap length is too large") in Marc's example. This is correct since Python's sequence protocol does not support indexes larger than sys.maxsize.
But on 32 bit Windows, if length == 0 then the size check always passes, and the actual size mapped is the file size modulo 4GB.
Fix for 3.x is attached with tests. |
|
Date |
User |
Action |
Args |
2012-12-26 14:11:54 | sbt | set | recipients:
+ sbt, terry.reedy, pitrou, tim.golden, brian.curtin, schlamar, serhiy.storchaka |
2012-12-26 14:11:54 | sbt | set | messageid: <1356531114.35.0.703426203064.issue16743@psf.upfronthosting.co.za> |
2012-12-26 14:11:54 | sbt | link | issue16743 messages |
2012-12-26 14:11:52 | sbt | create | |
|