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

Parse xml snippet in smaller parts (RhBug:1859689) #225

Merged
merged 3 commits into from Jul 26, 2020

Conversation

kontura
Copy link
Contributor

@kontura kontura commented Jul 24, 2020

If string passed to xmlParseChunk (function froml libxml2) is too big the function errors out, its safer to parse the snippet in
smaller parts.

Also adds a unit test for this case.

https://bugzilla.redhat.com/show_bug.cgi?id=1859689

The third commit is unrelated and fixes an issue of accessing possible NULL pointer to tmp_err.

Libmodulemd doesn't always provide the error so we have to check before
accessing the message.
If string passed to xmlParseChunk (function froml ibxml2) is too
big the function errors out, its safer to parse the snippet in
smaller parts.

https://bugzilla.redhat.com/show_bug.cgi?id=1859689
@dralley
Copy link
Contributor

dralley commented Jul 24, 2020

I can confirm that this is fixed in the case where I originally discovered it :) Thanks @kontura!

@Conan-Kudo Conan-Kudo merged commit 6f08a56 into rpm-software-management:master Jul 26, 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

3 participants