Skip to content

Commit 212d32f

Browse files
bpo-42249: Fix writing binary Plist files larger than 4 GiB. (GH-23121)
1 parent 74b4eda commit 212d32f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/plistlib.py

+1-1
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:
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)