[issue10451] memoryview can be used to write into readonly buffer

Evgeny Kapun report at bugs.python.org
Thu Nov 18 08:18:17 CET 2010


New submission from Evgeny Kapun <abacabadabacaba at gmail.com>:

This code crashes Python:

import io, mmap
io.BytesIO(b' ').readinto(memoryview(mmap.mmap(-1, 1, prot=mmap.PROT_READ)))

----------
components: Interpreter Core
messages: 121446
nosy: abacabadabacaba
priority: normal
severity: normal
status: open
title: memoryview can be used to write into readonly buffer
type: crash
versions: Python 3.1, Python 3.2

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


More information about the Python-bugs-list mailing list