Skip to content

Commit ac70175

Browse files
bpo-42249: Fix writing binary Plist files larger than 4 GiB. (GH-23121)
(cherry picked from commit 212d32f) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 547d2bc commit ac70175

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
@@ -736,7 +736,7 @@ def _count_to_size(count):
736736
elif count < 1 << 16:
737737
return 2
738738

739-
elif count << 1 << 32:
739+
elif count < 1 << 32:
740740
return 4
741741

742742
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)