Maxim Yanchenko <maxim.yanche...@gs.com> added the comment:

> You got lucky, since the offset must be a multiple of the page size.
That's why our header is exactly the page size :)

> Here's what POSIX says
Then it's just another discrepancy between POSIX and Linux, as I received 
ENOMEM instead of EINVAL (RHEL6 on 2.6.32).


Regarding the contradiction, it's probably still worth changing the exception 
message to "mmap offset is greater than _or equal to_ file size", to match the 
condition. Just 'greater than' means the '>' check, not the '>=' check from the 
code, mathematically.

----------
resolution: rejected -> 

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13148>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to