SIGN IN SIGN UP

[3.12] gh-119342: Fix a potential denial of service in plistlib (GH-119343) (#142149)

Reading a specially prepared small Plist file could cause OOM because file's
read(n) preallocates a bytes object for reading the specified amount of
data. Now plistlib reads large data by chunks, therefore the upper limit of
consumed memory is proportional to the size of the input file.
(cherry picked from commit 694922cf40aa3a28f898b5f5ee08b71b4922df70)
S
Serhiy Storchaka committed
5a8b19677d818fb41ee55f310233772e15aa1a2b
Parent: 9c9dda6
Committed by GitHub <noreply@github.com> on 12/22/2025, 1:49:44 PM