Skip to content

Issues caused by reading arbitrary number of bytes #141713

@serhiy-storchaka

Description

@serhiy-storchaka

This is a meta-issue for a group of similar issues that have the same root cause: reading a number of bytes when the number is specified by the user/external source. Since read(n) is usually implemented by allocating a buffer of size n and then reading into it, this can cause arbitrary memory consumption which leads to swapping.

Linked PRs

Sub-issues

Metadata

Metadata

Labels

extension-modulesC modules in the Modules dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions