Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2023-04-19 | Add plist_read_from_file() to interface, update plist_from_memory() | Nikias Bassen | 1 | -1/+1 | |
plist_read_from_file() is a convenience function that will open a given file, checks its size, allocates a buffer large enough to hold the full contents, and reads from file to fill the buffer. Then, it calls plist_from_memory() to convert the data to plist format. A (breaking) change had to be made so that plist_from_memory() will also return the parsed format in its 4th argument (if non-NULL). | |||||
2023-04-16 | Add new output-only formats and Define constants for the different plist formats | Nikias Bassen | 1 | -8/+8 | |
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. | |||||
2023-02-07 | Add function to interface to allow enabling/disabling error/debug output for ↵ | Nikias Bassen | 1 | -0/+5 | |
the format parses This makes the `-d` option work in plistutil that wasn't doing anything | |||||
2023-02-06 | plistutil: Add command line switch to allow sorting of the output plist | Nikias Bassen | 1 | -6/+23 | |
2023-01-08 | Add support for OpenStep plist format | Nikias Bassen | 1 | -22/+32 | |
2022-01-31 | plistutil: Make sure the input buffer is 0-terminated in all code paths | Nikias Bassen | 1 | -0/+1 | |
2021-12-23 | plistutil: Check return values from plist API to print proper error messages | Nikias Bassen | 1 | -14/+35 | |
and return a meaningful exit code. | |||||
2021-12-23 | Add support for JSON format | Nikias Bassen | 1 | -42/+36 | |
2021-02-06 | plistutil: Fix stdin input buffer reallocation | Nikias Bassen | 1 | -5/+16 | |
2021-01-25 | Replace malloc + memset with calloc where appropriate | Rosen Penev | 1 | -2/+1 | |
calloc is faster for big allocations. It's also simpler. Signed-off-by: Rosen Penev <rosenp@gmail.com> | |||||
2020-11-24 | Improve code readability by using explicit != 0 compare when using strncmp | Rosen Penev | 1 | -1/+1 | |
[clang-tidy] Found with bugprone-suspicious-string-compare Signed-off-by: Rosen Penev <rosenp@gmail.com> | |||||
2020-06-05 | plistutil: Update copyright header | Nikias Bassen | 1 | -2/+3 | |
2020-06-05 | plistutil: Add new "--version" option to output version information | Nikias Bassen | 1 | -0/+6 | |
2020-06-05 | plistutil: Fix option parsing | Nikias Bassen | 1 | -8/+10 | |
2020-06-04 | Unify plistutil usage output with other tools and add project URLs | Martin Szulecki | 1 | -5/+10 | |
2020-06-04 | Add config.h include to plistutil.c | Martin Szulecki | 1 | -0/+3 | |
2020-06-04 | Replace tabs with correct space indentation in plistutil.c | Martin Szulecki | 1 | -10/+10 | |
2020-05-24 | plistutil: Improve usage text alignment | Nikias Bassen | 1 | -4/+4 | |
2020-05-24 | plistutil: Added ability to specify output format | Jaywalker | 1 | -8/+59 | |
2020-05-24 | plistutil: Added ability for files to be read from stdin | Jaywalker | 1 | -25/+71 | |
2017-02-07 | plistutil: Print error message when opening input/output file fails and plug ↵ | Nikias Bassen | 1 | -1/+7 | |
memory leaks on error | |||||
2017-01-18 | plistutil: Use plist_is_binary() to check for binary plist data | Nikias Bassen | 1 | -1/+1 | |
2017-01-18 | plistutil: Prevent OOB heap buffer read by checking input size | Nikias Bassen | 1 | -0/+6 | |
As pointed out in #87 plistutil would do a memcmp with a heap buffer without checking the size. If the size is less than 8 it would read beyond the bounds of this heap buffer. This commit prevents that. | |||||
2015-01-29 | plistutil: Plug some memory leaks | Nikias Bassen | 1 | -2/+6 | |
2015-01-29 | plistutil: Use static buffer for stat() | Nikias Bassen | 1 | -6/+4 | |
2015-01-23 | plistutil: Improve error message for a human if input file reading failed | Martin Szulecki | 1 | -1/+1 | |
2015-01-23 | plistutil: Cleanup code style a bit and remove obsolete extra header | Martin Szulecki | 1 | -72/+78 | |
2015-01-23 | Update and correct some copyright header comments | Martin Szulecki | 1 | -1/+2 | |
2013-12-13 | change build system to autotools | Nikias Bassen | 1 | -0/+164 | |