Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-42249: Fix writing binary Plist files larger than 4 GiB. (GH-23121)
(cherry picked from commit 212d32f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
  • Loading branch information
serhiy-storchaka authored and miss-islington committed Nov 3, 2020
commit 4f01e5bd57918a35ca65e63aa2939abcef4d1dbc
2 changes: 1 addition & 1 deletion Lib/plistlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed writing binary Plist files larger than 4 GiB.