This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Ned Williamson
Recipients Ned Williamson
Date 2017-10-30.04:16:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I'm filing related bugs under this same issue.

import plistlib
dat = b'Q\xe4\xfeAIAAAAAAAAwAAA\xc9A\xc1AAA\xc1AAAAAAA\x9cAAAAAAAAAAAAAAnAAA\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00AA'
plistlib.loads(dat, fmt=plistlib.FMT_BINARY)

Traceback (most recent call last):
  File "", line 3, in <module>
    plistlib.loads(dat, fmt=plistlib.FMT_BINARY)
  File "/usr/lib/python3.5/", line 1006, in loads
    fp, fmt=fmt, use_builtin_types=use_builtin_types, dict_type=dict_type)
  File "/usr/lib/python3.5/", line 997, in load
    return p.parse(fp)
  File "/usr/lib/python3.5/", line 623, in parse
    return self._read_object(self._object_offsets[top_object])
  File "/usr/lib/python3.5/", line 699, in _read_object
    result ='ascii')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128)

It seems only `InvalidFileException` should be raised by this function.
Date User Action Args
2017-10-30 04:16:44Ned Williamsonsetrecipients: + Ned Williamson
2017-10-30 04:16:44Ned Williamsonsetmessageid: <>
2017-10-30 04:16:44Ned Williamsonlinkissue31897 messages
2017-10-30 04:16:44Ned Williamsoncreate