summaryrefslogtreecommitdiffstats
path: root/fuzz/oplist-leaks/clusterfuzz-testcase-minimized-oplist_fuzzer-6497436988473344
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2026-11-05 12:02:05 +0100
committerGravatar Nikias Bassen2026-11-05 12:02:05 +0100
commit9fd3406baec5997d386cdb4c7492117604ba0a70 (patch)
treec8a69bb4d08fb2fb1e20db5a8cd4e68d9affbe25 /fuzz/oplist-leaks/clusterfuzz-testcase-minimized-oplist_fuzzer-6497436988473344
parent4dc93bc274867b42aa82fc91ee4d5878d23a3f36 (diff)
downloadlibplist-9fd3406baec5997d386cdb4c7492117604ba0a70.tar.gz
libplist-9fd3406baec5997d386cdb4c7492117604ba0a70.tar.bz2
Fix leaks and crashes on allocation failure
Found by failing each allocation in turn under ASan/UBSan/LSan: - plist_free() leaked the whole tree if its work stack could not be allocated; free the children iteratively without extra memory - plist_copy(): when a shallow copy of a dict/array failed, the original's lookup table was freed along with the copy's data (use-after-free) - bplist parser: fix a NULL dereference in parse_date_node(), check the node_attach() results, and don't leak on failure; plist_to_bin() no longer leaks on an allocation failure - free the plist data when node creation fails (plist constructors, XML, JSON and binary parsers)
Diffstat (limited to 'fuzz/oplist-leaks/clusterfuzz-testcase-minimized-oplist_fuzzer-6497436988473344')
0 files changed, 0 insertions, 0 deletions