summaryrefslogtreecommitdiffstats
path: root/Lib/plistlib.py
diff options
context:
space:
mode:
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>2020-11-03 21:32:59 (GMT)
committerGitHub <noreply@github.com>2020-11-03 21:32:59 (GMT)
commit9bc07874e34930d4e816a9a3330aab009404991e (patch)
treef1a9ed8f60cb4dad98b2f2e0028f1427a0f019c9 /Lib/plistlib.py
parent6b7a90db362253d67201c2a438a3f38f1ec6180c (diff)
downloadcpython-9bc07874e34930d4e816a9a3330aab009404991e.zip
cpython-9bc07874e34930d4e816a9a3330aab009404991e.tar.gz
cpython-9bc07874e34930d4e816a9a3330aab009404991e.tar.bz2
bpo-42249: Fix writing binary Plist files larger than 4 GiB. (GH-23121)
(cherry picked from commit 212d32f45c91849c17a82750df1ac498d63976be) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/plistlib.py')
-rw-r--r--Lib/plistlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/plistlib.py b/Lib/plistlib.py
index 83b214e..2eeebe4 100644
--- a/Lib/plistlib.py
+++ b/Lib/plistlib.py
@@ -611,7 +611,7 @@ def _count_to_size(count):
elif count < 1 << 16:
return 2
- elif count << 1 << 32:
+ elif count < 1 << 32:
return 4
else: