]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport of SF bug # 585792, Invalid mmap crashes Python interpreter
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 5 Sep 2002 22:30:03 +0000 (22:30 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 5 Sep 2002 22:30:03 +0000 (22:30 +0000)
commitdf4626fb8a003fdce8996fcdbefe1bba1f2a63cf
tree3a822ccf47a6cd88e268a36917761678f744b4c1
parentba933e63a7746396eb27a97c9e1408fa0c5437cd
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.
Lib/test/output/test_mmap
Lib/test/test_mmap.py
Misc/NEWS
Modules/mmapmodule.c