SF bug # 585792, Invalid mmap crashes Python interpreter

Raise ValueError if user passes a size to mmap which is larger
than the file.
This commit is contained in:
Neal Norwitz 2002-09-05 21:48:07 +00:00
parent 7165af23e6
commit b567392bbf
4 changed files with 30 additions and 1 deletions

View file

@ -24,6 +24,7 @@ test_mmap
Ensuring that readonly mmap can't be write() to.
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.
Opening mmap with access=ACCESS_COPY