Open
Description
Bug report
Bug description:
With some files python trying to pickle.load() use all available RAM
and get killed by OOM killer.
How-to-reproduce:
import pickle
f = open("./oom-1a498cedae1dc957f2fbb15d18a5c265dc7b9ae2.txt","rb")
pickle.load(f)
where oom-1a498cedae1dc957f2fbb15d18a5c265dc7b9ae2.txt:
]replace.
Whats-happend:
RAM consumption grows till process killed by OOM killer
Whats-you-expect:
some kind of error?
I'll include 3 examples of "broken" pickle files. But i cannot find the way to see similarities in content. And I'm not very well versed in the pickle format to find out the root of the problem.
CPython versions tested on:
3.9, 3.12
Operating systems tested on:
Linux
Linked PRs
Metadata
Metadata
Assignees
Labels
Projects
Status
No status