3breadt / dd-plist

A java library providing support for ASCII, XML and binary property lists.
Other
258 stars 94 forks source link

Cyclic references in binary property list cause StackOverflowError #75

Closed 3breadt closed 1 year ago

3breadt commented 1 year ago

Part of Issue #74.

NSArray, NSDictionary and NSSet contain references to child objects. If a binary property list is malformed it may contain a reference to itself or a parent NSDictionary/Array/Set. This causes a StackOverflowException in the recursive BinaryPropertyListParser.parseObject method.

Such cyclic references should be detected and parsing be aborted.

3breadt commented 1 year ago

Fixed in 850f019170888aa424656d632a6c7d55f00d5680