Skip to content

Resizing an anonymous mmap can lead to crash #138204

@serhiy-storchaka

Description

@serhiy-storchaka

Crash report

>>> import mmap
>>> m = mmap.mmap(-1, mmap.PAGESIZE)
>>> m.resize(2 * mmap.PAGESIZE)
>>> m[:]
Bus error (core dumped)

Tested on Linux.

Linked PRs

Metadata

Metadata

Labels

3.13bugs and security fixes3.14bugs and security fixes3.15new features, bugs and security fixesstdlibPython modules in the Lib dirtype-crashA hard crash of the interpreter, possibly with a core dump

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions