Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(9)

Unified Diff: Lib/plistlib.py

Issue 26707: plistlib fails to parse bplist with 0x80 UID values
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/plistlib.py Wed Mar 16 14:30:16 2016 +0100
+++ b/Lib/plistlib.py Thu Apr 07 09:49:12 2016 +0200
@@ -703,8 +703,9 @@
s = self._get_size(tokenL)
return self._fp.read(s * 2).decode('utf-16be')
- # tokenH == 0x80 is documented as 'UID' and appears to be used for
- # keyed-archiving, not in plists.
+ elif tokenH == 0x80:
+ s = self._get_size(tokenL)
+ return self._fp.read(s).decode('ascii')
elif tokenH == 0xA0: # array
s = self._get_size(tokenL)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+