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 sbt
Recipients brian.curtin, pitrou, sbt, schlamar, serhiy.storchaka, terry.reedy, tim.golden
Date 2012-12-26.14:11:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356531114.35.0.703426203064.issue16743@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-12-26 14:11:54sbtsetrecipients: + sbt, terry.reedy, pitrou, tim.golden, brian.curtin, schlamar, serhiy.storchaka
2012-12-26 14:11:54sbtsetmessageid: <1356531114.35.0.703426203064.issue16743@psf.upfronthosting.co.za>
2012-12-26 14:11:54sbtlinkissue16743 messages
2012-12-26 14:11:52sbtcreate