summaryrefslogtreecommitdiffstats
path: root/src/out-default.c
AgeCommit message (Collapse)AuthorFilesLines
4 hoursrefactor: centralize formatting helpers and harden out-plutilGravatar Nikias Bassen1-78/+1
6 hoursout-default: harden node serialization pathsGravatar Nikias Bassen1-23/+63
Improve robustness and memory safety in node_to_string() and dtostr(): - add missing NULL and allocation checks - fix snprintf() error handling and signed/unsigned conversions - replace sprintf() with snprintf() - fix base64 buffer sizing - switch string offset tracking to size_t - improve malformed data handling for strings and data blobs
2026-01-17Prevent deep nesting of plist structures in all input/output formatsGravatar Nikias Bassen1-0/+7
Thanks to @unbengable12 for reporting. Addresses #288, #289, #290, #291, and #292.
2026-01-14Add circular reference detection to all format writersGravatar Nikias Bassen1-3/+24
Thanks to @LkkkLxy for pointing out the issue.
2023-05-21Add explicit casts and fix return type mismatchesGravatar Nikias Bassen1-10/+10
2023-05-13Add space before PRI* macros, some compilers do not like itGravatar Nikias Bassen1-4/+4
2023-04-16Add new output-only formats and Define constants for the different plist formatsGravatar Nikias Bassen1-0/+491
This commit introduces constants for the different plist formats, and adds 3 new human-readable output-only formats: - PLIST_FORMAT_PRINT: the default human-readable format - PLIST_FORMAT_LIMD: "libimobiledevice" format (used in ideviceinfo) - PLIST_FORMAT_PLUTIL: plutil-style format Also, a new set of write functions has been added: - plist_write_to_string - plist_write_to_stream - plist_write_to_file Plus a simple "dump" function: - plist_print See documentation for details.