This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ocean-city
Recipients ocean-city
Date 2009-02-27.17:33:43
SpamBayes Score 4.6757012e-08
Marked as misclassified No
Message-id <1235756024.86.0.438154708422.issue5385@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-02-27 17:33:44ocean-citysetrecipients: + ocean-city
2009-02-27 17:33:44ocean-citysetmessageid: <1235756024.86.0.438154708422.issue5385@psf.upfronthosting.co.za>
2009-02-27 17:33:43ocean-citylinkissue5385 messages
2009-02-27 17:33:43ocean-citycreate