New submission from Hirokazu Yamamoto <ocean-c...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue5385> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com