[New-bugs-announce] [issue5386] mmap can crash with write_byte

Hirokazu Yamamoto report at bugs.python.org
Fri Feb 27 18:40:15 CET 2009


New submission from Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp>:

mmap.write_byte doesn't check buffer size, so it can cause crash like
bellow.

import mmap
m = mmap.mmap(-1, 1)
for i in xrange(10000): # enough?
    print i
    m.write_byte('1') # crash

The patch is in r69945.

----------
components: Extension Modules
messages: 82853
nosy: ocean-city
severity: normal
status: open
title: mmap can crash with write_byte
type: crash
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5386>
_______________________________________


More information about the New-bugs-announce mailing list