Skip to content

Commit 90068c8

Browse files
serhiy-storchakaadorilson
authored andcommitted
bpo-42249: Fix writing binary Plist files larger than 4 GiB. (pythonGH-23121)
1 parent d7aae08 commit 90068c8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/plistlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def _count_to_size(count):
611611
elif count < 1 << 16:
612612
return 2
613613

614-
elif count << 1 << 32:
614+
elif count < 1 << 32:
615615
return 4
616616

617617
else:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed writing binary Plist files larger than 4 GiB.

0 commit comments

Comments
 (0)