[New-bugs-announce] [issue5385] mmap can crash after resize failure (windows)
Hirokazu Yamamoto
report at bugs.python.org
Fri Feb 27 18:33:44 CET 2009
New submission from Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp>:
On windows, after mmap.resize fails, self->map_handle
becomes NULL, but it should become INVALID_HANDLE_VALUE otherwise
CHECK_VALID is passed through, it can cause crash like bellow.
import mmap
m = mmap.mmap(-1, 5)
try:
m.resize(-1)
except WindowsError:
pass
m[0] = '1' # crash
The patch is in r69942.
----------
components: Extension Modules
messages: 82852
nosy: ocean-city
severity: normal
status: open
title: mmap can crash after resize failure (windows)
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5385>
_______________________________________
More information about the New-bugs-announce
mailing list