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

RDFXML parser crashes any character sequences decoded by the urldecode() #337

Closed
wants to merge 4 commits into from

Conversation

k00ni
Copy link
Contributor

@k00ni k00ni commented Jul 6, 2020

Most of these changes were contributed by @zozlak on my fork: https://github.com/sweetyrdf/easyrdf/pull/16

But there were code changes in the meantime, in comparison to easyrdf/easyrdf::master. They came from a merge of #294 and introduced the fopen call when loading a XML file. The code of @zozlak was based on these changes.

#294 also introduced LIBXML_PARSEHUGE when calling $doc->loadXML. These changes are not part of this PR, but should be merged too.

Ignore my comments in commit ff11f4d, I made a mistake by mentioning changes from #292 which should be part of this PR. They are not. The fix already works by using surrounding < and > in the failing test case.

To be honest, it became harder to keep a clear view with all the code changes in different forks. I vote for merging this and #294, except @zozlak intervenes (see next section below). That would clear the field. If we don't merge this PR, then #294 should be closed too.

@zozlak: It would be great if you could help me out here by answering https://github.com/sweetyrdf/easyrdf/pull/16#issuecomment-654257216. Thank you in advance!

k00ni and others added 4 commits July 6, 2020 16:11
These changes were contributed by @zozlak on my fork:
https://github.com/sweetyrdf/easyrdf/pull/16

There was a code change in the meantime, in comparison to
easyrdf/easyrdf::master. It was merged from easyrdf#294. It introduced the `fopen` call
when loading XML file.

Co-authored-by: Mateusz Żółtak <zozlak@zozlak.org>
Co-authored-by: Konrad Abicht <hi@inspirito.de>
Added further code, which was added before the code of the related pull request,
because expected working test fails:

https://travis-ci.com/github/k00ni/easyrdf/jobs/357965728#L804

Parsed value is empty.
…erty call in failing test

The source of the failing test may be located in

easyrdf#292

because these changes are not yet part of easyrdf/easyrdf's master branch.
@k00ni
Copy link
Contributor Author

k00ni commented Aug 13, 2020

Closed in favor of #352.

@k00ni k00ni closed this Aug 13, 2020
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.

None yet

1 participant