Skip to content

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

@ret2libc

Description

@ret2libc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions