Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ASCII property list parsing #63

Merged
merged 1 commit into from
Feb 23, 2023
Merged

Fix ASCII property list parsing #63

merged 1 commit into from
Feb 23, 2023

Conversation

BradleyMarie
Copy link
Contributor

Currently parsing ASCII property lists fails immediately with the exception "unexpected EOF. malformed file"

This fixes issue #59.

Currently parsing ASCII property lists fails immediately with the exception "unexpected EOF. malformed file"
@ddiakopoulos
Copy link
Owner

@BradleyMarie thanks for the PR! I also see that someone else has a PR out #62 that fixes this but also makes the destSize adjustment on another line too. Could you confirm which is correct?

@BradleyMarie
Copy link
Contributor Author

BradleyMarie commented Feb 23, 2023

Since the first read is reading into &listSize, my read of the code was that setting dummyCount to zero before parsing was the correct thing to do instead of replacing sizeof(listSize) with destSize.

@ddiakopoulos
Copy link
Owner

LGTM thanks!

@ddiakopoulos ddiakopoulos merged commit 350044d into ddiakopoulos:master Feb 23, 2023
@nsdfxela
Copy link

"someone else" was me. let it be) Closing my p.r.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants