From e45099fb21b679aa0cdb0db394587bb5ba675b0c Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 17 Jan 2026 15:18:06 +0100 Subject: Prevent deep nesting of plist structures in all input/output formats Thanks to @unbengable12 for reporting. Addresses #288, #289, #290, #291, and #292. --- include/plist/plist.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/plist') diff --git a/include/plist/plist.h b/include/plist/plist.h index 5ea30b8..8ed9063 100644 --- a/include/plist/plist.h +++ b/include/plist/plist.h @@ -145,6 +145,7 @@ extern "C" PLIST_ERR_NO_MEM = -4, /**< not enough memory to handle the operation */ PLIST_ERR_IO = -5, /**< I/O error */ PLIST_ERR_CIRCULAR_REF = -6, /**< circular reference detected */ + PLIST_ERR_MAX_NESTING = -7, /**< maximum nesting depth exceeded */ PLIST_ERR_UNKNOWN = -255 /**< an unspecified error occurred */ } plist_err_t; -- cgit v1.1-32-gdbae