diff options
| author | 2026-01-17 15:18:06 +0100 | |
|---|---|---|
| committer | 2026-01-17 16:04:00 +0100 | |
| commit | e45099fb21b679aa0cdb0db394587bb5ba675b0c (patch) | |
| tree | b1a2c1dd34877d83a04d6d6fab804fb2e5a65f2d /src/plist.h | |
| parent | 26dd27c435a0d110c924e1fef34ad0f6ae60e251 (diff) | |
| download | libplist-e45099fb21b679aa0cdb0db394587bb5ba675b0c.tar.gz libplist-e45099fb21b679aa0cdb0db394587bb5ba675b0c.tar.bz2 | |
Prevent deep nesting of plist structures in all input/output formats
Thanks to @unbengable12 for reporting. Addresses #288, #289, #290, #291, and #292.
Diffstat (limited to 'src/plist.h')
| -rw-r--r-- | src/plist.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plist.h b/src/plist.h index 3043fb7..e310bcc 100644 --- a/src/plist.h +++ b/src/plist.h @@ -49,6 +49,10 @@ #endif #endif +#ifndef PLIST_MAX_NESTING_DEPTH +#define PLIST_MAX_NESTING_DEPTH 512 +#endif + #include "plist/plist.h" struct plist_data_s |
