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

possible double-free in comps_doc.c if xmlTextWriter functions fail #40

Open
ret2libc opened this issue Jan 21, 2019 · 0 comments
Open

Comments

@ret2libc
Copy link

In function comps_doc_xml() in comps_doc.c, the dict object is destroyed at

COMPS_OBJECT_DESTROY(dict);
, however there are many other error paths where the object is destroyed again, possibly causing double-free (e.g.
COMPS_OBJECT_DESTROY(dict);
).

This was probably the result of a wrong copy-paste, where dict should have been replaced with mdict but it wasn't.

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

No branches or pull requests

1 participant