[PR #10] Fix issues with 0-length streams #48

Open
opened 2026-01-30 21:26:54 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/claunia/plist-cil/pull/10

State: closed
Merged: Yes


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!

**Original Pull Request:** https://github.com/claunia/plist-cil/pull/10 **State:** closed **Merged:** Yes --- 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!
claunia added the pull-request label 2026-01-30 21:26:54 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: claunia/plist-cil#48