claunia / plist-cil

C#/.NET parser for Apple and GnuStep Property List (aka plist), based on Java's dd-plist
Other
54 stars 17 forks source link

Fix issues with 0-length streams #10

Closed qmfrederik closed 8 years ago

qmfrederik commented 8 years ago

When parsing a stream, it can happen that the stream is 0-length (or, more likely, that you're at the end of the stream by accident).

This would cause an index out of range exception in the PropertyListParser. This PR fixes that and also optimizes how ReadAll is implemented.

Hope it helps!