]> granicus.if.org Git - python/commit
Issue #10916: mmap should not segfault when a file is mapped using 0 as
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 15 Jan 2011 16:17:07 +0000 (16:17 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 15 Jan 2011 16:17:07 +0000 (16:17 +0000)
commit85f461550057e2a797cf7015c31f1a6d63553493
treeb22a2158061dcbcb396d39f2ea4abb7f0633835a
parentf5cf435bb52c8ba5ab6813bde70696fa3de98efa
Issue #10916: mmap should not segfault when a file is mapped using 0 as
length and a non-zero offset, and an attempt to read past the end of file
is made (IndexError is raised instead).  Patch by Ross Lagerwall.

Requested by Georg.
Lib/test/test_mmap.py
Misc/NEWS
Modules/mmapmodule.c