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 rosslagerwall
Recipients amaury.forgeotdarc, loewis, pitrou, r.david.murray, rosslagerwall
Date 2011-01-15.15:18:56
SpamBayes Score 5.158334e-07
Marked as misclassified No
Message-id <1295104742.35.0.155960214415.issue10916@psf.upfronthosting.co.za>
In-reply-to
Content
If a mmap length 0 is used and an offset is used as well, the size to mmap() is calculated as the size of the file instead of the size of the file minus offset. This means that trying to access a certain part does not result in an index error but a segfault (bus error).

Attached is a patch that fixes the issue + a unit test.
History
Date User Action Args
2011-01-15 15:19:02rosslagerwallsetrecipients: + rosslagerwall, loewis, amaury.forgeotdarc, pitrou, r.david.murray
2011-01-15 15:19:02rosslagerwallsetmessageid: <1295104742.35.0.155960214415.issue10916@psf.upfronthosting.co.za>
2011-01-15 15:18:57rosslagerwalllinkissue10916 messages
2011-01-15 15:18:57rosslagerwallcreate