[issue5887] mmap.write_byte out of bounds - no error, position gets screwed up

2009-04-30 Thread Brian Mearns
New submission from Brian Mearns : Created an mmap for a file in update mode, seek to end of file, and invoke write_byte. The file is not updated (as expected), but did not get any error indicating the write was out of bounds, and when I invoke tell(), it reports a position that is out of bounds

[issue5888] mmap ehancement - resize with sequence notation

2009-04-30 Thread Brian Mearns
New submission from Brian Mearns : I thought it would be nice if mmaps could generally look a little more like sequences. Specifically, being able to resize+write using square-bracket notation as with lists: >>> x = [1,2,3,4,5] >>> x [1, 2, 3, 4, 5] >>> x[2:2] = [6,

[issue5887] mmap.write_byte out of bounds - no error, position gets screwed up

2009-05-06 Thread Brian Mearns
Brian Mearns added the comment: Confirmed fixed in python 2.6.2 -- ___ Python tracker <http://bugs.python.org/issue5887> ___ ___ Python-bugs-list mailin

[issue5887] mmap.write_byte out of bounds - no error, position gets screwed up

2009-05-06 Thread Brian Mearns
Brian Mearns added the comment: On Wed, May 6, 2009 at 8:51 AM, Hirokazu Yamamoto wrote: > > Hirokazu Yamamoto added the comment: > > Thank you for response. I'll close this entry. > > -- > resolution:  -> out of date > status: open -> closed >

[issue6390] File reads past EOF in "w+b" mode

2009-06-30 Thread Brian Mearns
New submission from Brian Mearns : Open a file in "w+b" mode: if you write to the file, then read from it without seeking backward, it reads past the EOF, apparently out into memory, which could be a pretty bad security concern. Have not checked if "w+" mode does the sam