forked from DHowett/go-plist
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bplist] Rewrite the object parser to add cycle detection
This commit: - Replaces valueAtOffset with objectAtIndex, which does boundary checks - Replaces most uses of object offsets with object IDs - Adds object IDs to most error messages - Cleans up the dictionary and array deserializers - Adds support for cycle detection; this can be optimized if necessary, but as long as object graphs remain shallow should be performant - Removes the full object table deserialization step; only objects referred to directly by the root object will be deserialized. - Introduces must/must2 to remove some error panics from bplist_parser.go Fixes DHowett#23.
- Loading branch information
Showing
3 changed files
with
98 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters