[issue10959] mmap crash

2011-01-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r88131 (3.2), r88132 (3.1) and r88133 (2.7). Thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue10959] mmap crash

2011-01-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch which also caters to the Windows side of things. -- Added file: http://bugs.python.org/file20470/mmap_10959.patch ___ Python tracker _

[issue10959] mmap crash

2011-01-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +georg.brandl stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10959] mmap crash

2011-01-20 Thread Ross Lagerwall
New submission from Ross Lagerwall : The fix for issue10916 commited in r88022 introduces this line: map_size = st.st_size - offset; If offset > st.st_size, map_size is negative. This should cause the mmap system call to return -1 and set errno. However, given a certain size of offset, since