New submission from John Lehr:

plistlib has key error when attempting to load the iOS7  
var/mobile/Applications/com.apple.mobilesafari/Library/Safari/History.plist.  
No detected issues with other iOS7 plists.

In [8]: with 
open('cases/vitale_test_iphone/unback/AppDomain-com.apple.mobilesafari/Library/Safari/History.plist',
 'rb') as f:
   ...:     plist = plistlib.lo
plistlib.load   plistlib.loads  
   ...:     plist = plistlib.load(f)
   ...:     
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-8-7824ac03848c> in <module>()
      1 with 
open('cases/vitale_test_iphone/unback/AppDomain-com.apple.mobilesafari/Library/Safari/History.plist',
 'rb') as f:
----> 2     plist = plistlib.load(f)
      3 

/usr/lib/python3.4/plistlib.py in load(fp, fmt, use_builtin_types, dict_type)
    993         p = _FORMATS[fmt]['parser'](use_builtin_types=use_builtin_types)
    994 
--> 995     return p.parse(fp)
    996 
    997 

/usr/lib/python3.4/plistlib.py in parse(self, fp)
    620             ) = struct.unpack('>6xBBQQQ', trailer)
    621             self._fp.seek(offset_table_offset)
--> 622             offset_format = '>' + _BINARY_FORMAT[offset_size] * 
num_objects
    623             self._ref_format = _BINARY_FORMAT[self._ref_size]
    624             self._object_offsets = struct.unpack(

KeyError: 3

----------
messages: 218821
nosy: slo.sleuth
priority: normal
severity: normal
status: open
title: plistlib unable to load iOS7 Safari History.plist
type: crash
versions: Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21538>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to