homepage

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 jazzer
Recipients jazzer, neologix, pitrou
Date 2011年10月11日.01:52:12
SpamBayes Score 4.0466034e-06
Marked as misclassified No
Message-id <1318297933.7.0.158791258794.issue13148@psf.upfronthosting.co.za>
In-reply-to
Content
Well, "n+1" is clearly outside the file, wile "n" is within and therefore valid.
Also, if your position is to forbid zero-size mmapping completely, then the checks inside "if (map_size == 0) {" don't make any sense, especially as they may or may fail.
From the existing code, zero-size mmapping is OK as long as offset is OK, so the question is whether we consider offset pointing to the end of the file OK. To me, it's fine and valid, and there are valid cases like NumPy's zero-size arrays, hence the proposed patch.
Removing the check completely is a viable option too, it was already requested for special files:
http://bugs.python.org/issue12556
I believe users should have an ability to enjoy whatever their OS provides, and "deal with the consequences" as you said.
History
Date User Action Args
2011年10月11日 01:52:13jazzersetrecipients: + jazzer, pitrou, neologix
2011年10月11日 01:52:13jazzersetmessageid: <1318297933.7.0.158791258794.issue13148@psf.upfronthosting.co.za>
2011年10月11日 01:52:13jazzerlinkissue13148 messages
2011年10月11日 01:52:12jazzercreate

AltStyle によって変換されたページ (->オリジナル) /