• Filippo Bigarella's avatar
    xplist: Prevent UaF when parsing structured nodes fails · 17b8e01b
    Filippo Bigarella authored
    In case parsing inside `node_from_xml` called from line 842 fails, `data`
    gets freed by the call to `plist_free` at line 899, since `subnode` is
    actually created by making it point to `data` at line 684. This commit
    prevents this situation by bailing out whenever parsing in a deeper level
    of structured nodes fails.
    17b8e01b
xplist.c 29.2 KB