Mailing List Archive

python/dist/src/Lib/test/output test_mmap,1.8,1.8.6.1
Update of /cvsroot/python/python/dist/src/Lib/test/output
In directory usw-pr-cvs1:/tmp/cvs-serv12162/Lib/test/output

Modified Files:
Tag: release22-maint
test_mmap
Log Message:
Backport of SF bug # 585792, Invalid mmap crashes Python interpreter

Raise ValueError if user passes a size to mmap which is larger
than the file.

Also need Tim's fix in test_mmap.py, 1.22 which flushes the file
before mmap'ing it.



Index: test_mmap
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_mmap,v
retrieving revision 1.8
retrieving revision 1.8.6.1
diff -C2 -d -r1.8 -r1.8.6.1
*** test_mmap 8 Dec 2001 18:02:51 -0000 1.8
--- test_mmap 5 Sep 2002 22:30:03 -0000 1.8.6.1
***************
*** 25,28 ****
--- 25,29 ----
Ensuring that readonly mmap can't be write_byte() to.
Ensuring that readonly mmap can't be resized.
+ Opening mmap with size too big
Opening mmap with access=ACCESS_WRITE
Modifying write-through memory map.