[issue15676] mmap: add empty file check prior to offset check

2012-09-09 Thread Steven Willis
Steven Willis added the comment: Sorry, I thought that's what jcea was asking for. Here's an updated patch for the default branch in mercurial that uses assertRaisesRegex in the test. -- Added file: http://bugs.python.org/file27156/issue15676-def

[issue15676] mmap: add empty file check prior to offset check

2012-09-09 Thread Steven Willis
Changes by Steven Willis : -- versions: +Python 3.1 ___ Python tracker <http://bugs.python.org/issue15676> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15676] mmap: add empty file check prior to offset check

2012-09-09 Thread Steven Willis
Steven Willis added the comment: Here's a branch against the default branch in mercurial. I couldn't find a branch for 3.3 or 3.4. -- Added file: http://bugs.python.org/file27155/issue15676-default.patch ___ Python tracker <http://bu

[issue15676] mmap: add empty file check prior to offset check

2012-09-09 Thread Steven Willis
Steven Willis added the comment: Here's a patch for 3.2 -- Added file: http://bugs.python.org/file27154/issue15676-3.2.patch ___ Python tracker <http://bugs.python.org/is

[issue15676] mmap: add empty file check prior to offset check

2012-09-09 Thread Steven Willis
Steven Willis added the comment: Here's a patch for 3.1 -- Added file: http://bugs.python.org/file27153/issue15676-3.1.patch ___ Python tracker <http://bugs.python.org/is

[issue15676] mmap: add empty file check prior to offset check

2012-09-06 Thread Steven Willis
Steven Willis added the comment: Here's a patch for 2.7. I don't know if it cleanly applies to the rest. -- keywords: +patch Added file: http://bugs.python.org/file27140/issue15676.patch ___ Python tracker <http://bugs.python.o

[issue15676] mmap: add empty file check prior to offset check

2012-08-15 Thread Steven Willis
New submission from Steven Willis: There are a number of issues dealing with the offset and length checks in offset, such as issue12556. I'm running into this issue as well, but with a normal file that happens to be empty. I'm trying to access it with: mmap.mmap(f.fileno(), length