Closed GoogleCodeExporter closed 9 years ago
I did some debugging myself, and it seems that the offending line is this:
414: state = WebHistoryItem.from_bytes(state_blob[4:])
as at that point state_blog is equal to b'' (it is empty), and state_length is
equal to 0
Original comment by GSchizas
on 15 Nov 2012 at 9:59
I've added these lines instead:
# Parse state
if state_length > 4:
#print(state_blob[4:])
state = WebHistoryItem.from_bytes(state_blob[4:]) # first 32bits is the internal pickle size. We dont' need it.
else:
state = WebHistoryItem(url, None, None, None, None, None, None, None, None,
None, None, None, None, None, None, None,
None, None, None, None)
and it seems to work...
Original comment by GSchizas
on 15 Nov 2012 at 10:11
I'll take a look at the structure of that fragment and see if I can get
something from it - at a glance it doesn't look like the same problem exactly
so I think we can still get more data from it. Expect a patch later today!
Alex
Original comment by i...@ccl-forensics.com
on 15 Nov 2012 at 10:28
OK, the problem was that the state-blob had zero length (which seems weird, but
is clearly allowable) so your fix was pretty much right, although you shouldn't
be pushing the url into the WebHistoryItem's constructor there as it's coming
from a different part of the file structure. I've committed the change, if you
get a chance to confirm that it's working for you now then I'll close the issue.
Thanks again for the bug reports, truly appreciate you taking the time.
Alex
Original comment by i...@ccl-forensics.com
on 15 Nov 2012 at 11:14
I had to come back home, but I can verify that the latest version (0.8) works
properly with the file I had here :)
Original comment by GSchizas
on 15 Nov 2012 at 7:25
Great stuff, thanks for testing!
Original comment by i...@ccl-forensics.com
on 16 Nov 2012 at 9:16
Original issue reported on code.google.com by
GSchizas
on 15 Nov 2012 at 9:27