[issue5386] mmap can crash with write_byte
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Fixed in r70052(trunk), r70053(py3k). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5386
[issue5386] mmap can crash with write_byte
New submission from Hirokazu Yamamoto ocean-c...@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(1): # enough? print i m.write_byte('1') # crash The patch is in r69945. --