• Nikias Bassen's avatar
    bplist: Disallow key nodes with non-string node types · 7a28a14c
    Nikias Bassen authored
    As reported in #86, the binary plist parser would force the type of the
    key node to be of type PLIST_KEY while the node might be of a different
    i.e. non-string type. A following plist_free() might then call free() on
    an invalid pointer; e.g. if the node is of type integer, its value would
    be considered a pointer, and free() would cause an error.
    We prevent this issue by disallowing non-string key nodes during parsing.
    7a28a14c
bplist.c 35.6 KB