Up to [cvs.NetBSD.org] / pkgsrc / textproc / libplist
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
*: recursive bump for icu 79
libplist: update to 2.8.1.
Version 2.8.1
~~~~~~~~~~~~~
- Changes:
* bplist: Use length-based range checks for object data
* bplist: Limit the total number of parsed nodes to prevent memory
exhaustion from crafted reference expansion
* bytearray: Grow the buffer geometrically to avoid quadratic appends
(fixes a timeout when writing large plists)
* Harden allocation failure handling and size arithmetic across the
parsers, writers and containers
* Add tests for the binary plist parser behavior
- Bugfixes:
* Fix use-after-free in plist_copy_node() when the stack is reallocated
* Fix double-free in node_from_xml() error paths
* Fix memory leak in xplist when adding a node to its parent fails
* Fix leaks and crashes on allocation failure in the XML, binary and
OpenStep parsers, plist_free_children(), plist_copy_node_shallow(),
the dict hashtable and plist_to_bin()
* Report PLIST_ERR_NO_MEM from the XML parser on allocation failure
* oplist: Fix error detection when parsing 'strings' data
* time64: Fix signed integer overflow for extreme years in gmtime64_r()
* Fix plist_get_date_val() rounding and sign handling so that it
round-trips with plist_set_date_val(); handle out-of-range and NaN
values without undefined behavior
* bplist: Guard the uint64_mul_overflow fallback against division by zero
* Fix leak in integer_set test
* [github-actions] Add more msys flavors and an arm64 Windows build
libplist: update to 2.8.0.
Set TEST_TARGET.
Version 2.8.0
~~~~~~~~~~~~~
- Changes:
* Convert plist_array_set_item, plist_array_append_item, plist_array_insert_item,
plist_array_remove_item, plist_array_item_remove, plist_dict_set_item,
plist_dict_remove_item, and plist_dict_merge from void to plist_err_t return
type so that memory allocation and other errors can be reported
* Make #PLIST_ARRAY and #PLIST_DICT iterators opaque; add plist_array_free_iter
and plist_dict_free_iter to release them
* Add JSON coercion support for non-JSON plist types
* Add OpenStep coercion support for non-OpenStep plist types
* Add circular reference detection to all format writers
* Prevent deep nesting of plist structures in all input/output formats
* plistutil: Use getopt for solid option parsing
* plistutil: Add a --nodepath option to allow selecting a specific node
* plistutil: Read STDIN in chunks instead of one byte at a time
* plistutil: preserve binary data on Windows standard streams
* Add NULL checks and error handling across the codebase (node_attach/insert
failures, realloc failures in byte_array_grow/ptr_array_insert, etc.)
* Make plist copy and free implementations iterative to avoid stack overflow
on deeply nested structures
* docs: Add OpenStep to man page
- Bugfixes:
* Fix heap overflow caused by incorrect PLIST_STRING length during copy
* Fix UTF-8 to UTF-16 decoding and enforce strict validation in bplist
* Fix inverted strcmp in string to boolean conversion
* Fix incorrect size storage in plist_copy() for PLIST_STRING nodes
* Fix is_ascii_string by using a sufficiently large data type
* Fix bplist offset_table range check and add overflow check to node offset
pointer arithmetic
* Reject insertion of plist nodes that already have a parent
* xplist: Enforce single root value inside <plist>
* xplist: Convert nested {CF$UID:<int>} dicts to PLIST_UID safely
* xplist: Harden entity unescaping against malformed input and improve
robustness of XML text parsing and value conversion
* Fix plist_is_binary() not checking for NULL input
* Fix a few memory leaks in JSON parsing and libcnary node_copy_deep()
* Fix Cython crashes
* Fix fread() unused return values by actually handling errors
* Fix Integer constructor to copy plist node (C++ bindings)
* Various smaller compiler warning and portability fixes (MSVC ssize_t,
format specifiers, WIN32 time_s support)
*: recursive bump for icu 78.1
libplist: update to 2.7.0.
Version 2.7.0
~~~~~~~~~~~~~
- Changes:
* Add plist_new_unix_date, plist_get_unix_date_val, plist_set_unix_date_val functions
that work with int64_t values representing a UNIX timestamp instead of
using the 'MAC epoch'.
These new functions should be used instead of plist_new_date,
plist_get_date_val, and plist_set_date_val, which are now marked deprecated
and might be removed in a future version of libplist.
* Allow building the library without tool(s)
* Switch to more generic global initializer method
* json: Allow e+/E+ in exponent as per RFC 8259
* C++: Add more convenience functions to the interface
* C++: Add more type variants to different constructors and operators
- Bugfixes:
* Fix segmentation fault when calling plist_sort() on an empty dictionary
* Fix compilation on MSVC
* C++: Fix bug in internal helper function of Array class
* C++: Fix String::GetValue memory leaking and support assignment of const char*
Version 2.6.0
~~~~~~~~~~~~~
- Changes:
* Revert back API change around PLIST_DATA to use char* again
Version 2.5.0
~~~~~~~~~~~~~
- Changes:
* Change API around PLIST_DATA to use uint8_t* instead of char*
* Add PLIST_DICT helper functions for different operations
* Require Cython 3.0 for python bindings
Version 2.4.0
~~~~~~~~~~~~~
- Changes:
* Add a PLIST_OPT_NONE value to plist_write_options_t
* autoconf: Allow disabling build of test suite
* Update doxygen config and document undocumented macros
* Add an explicit PLIST_FORMAT_NONE value
* Add a libplist_version() function to the interface
* docs: Use README.md to generate mainpage with doxygen
- Bugfixes:
* Several compiler-related fixes and code improvements
* Plug memory leak in plist_write_to_stream()
* Prevent adding NULL items to array/dictionary nodes
* Fix parallel running of test suite
* Fix cython bindings
* Fix OOB read in plist_from_memory()
Version 2.3.0
~~~~~~~~~~~~~
- Changes:
* Rename PLIST_UINT to PLIST_INT and add plist_new_int() and plist_get_int_val()
* Add support for JSON format
* Add support for OpenStep format
* Introduce error codes and format constants
* Add return value to import/export functions to allow returning error codes
* Add new plist_sort function
* Add several human-readable output-only formats
* Add new plist_write_to_string/_stream/_file functions
* Add new plist_print function
* Add new plist_read_from_file function
* Add new plist_mem_free() function
* Add a few C++ methods
* Add C++ interface test
* Add PLIST_NULL type
* Some code housekeeping (mostly clang-tidy)
- Breaking:
* plist_from_memory() gets additional parameter
- Bugfixes:
* Fix multiple bugs in all of the parsers
* Fix handling of PLIST_UID nodes
*: recursive bump for icu 77 and libxml2 2.14
*: recursive bump for icu 76 shlib major version bump
*: revbump for icu downgrade
*: recursive bump for icu 76.1 shlib bump
libplist: fix build with Python 3.12
revbump after icu and protobuf updates
bplist: not for Python 2
*: recursive bump for icu 74.1
*: recursive bump for Python 3.11 as new default
revbump after textproc/icu update
libplist: remove python2 restriction Builds fine for me with python 3.11.1 on NetBSD 10.99.2/amd64.
massive revision bump after textproc/icu update
libplist: mark as Python 2.7 only This fails to build with Python 3 but works on 2.7. There is no indication that I can find of which versions are supported upstream. Perhaps the Python bindings should be optional.
libplist: update to 2.2.0.
Version 2.2.0
~~~~~~~~~~~~~
- Changes:
* bplist: Improve recursion check performance by at least 30% for large files
* test: Fix test suite on Windows
* cython: Fix handling of Date nodes (MACH_EPOCH)
* Add new plist_*_val_compare(), plist_*_val_contains() helper functions
* Fix/suppress several compiler warnings
* plistutil: Added ability for files to be read from stdin
* plistutil: Added ability to specify output format
* Fix: Return NULL from plist_copy() if passed a NULL pointer instead of asserting
* Add GitHub Actions integration for automatic build tests
* plistutil: Add manual page and usage output
* Fix removal of docs directory on `make clean`
* Improve README.md with project description, installation, contributing and
usage sections
* Rename library and all related files by adding an API version resulting
in "libplist-2.0" and "libplist++-2.0"
*: Revbump packages that use Python at runtime without a PKGNAME prefix
revbump for textproc/icu update
revbump for icu and libffi
revbump for textproc/icu
Revbump packages with a runtime Python dep but no version prefix. For the Python 3.8 default switch.
*: Recursive revbump from textproc/icu-68.1
Revbump for icu
all: migrate homepages from http to https pkglint -r --network --only "migrate" As a side-effect of migrating the homepages, pkglint also fixed a few indentations in unrelated lines. These and the new homepages have been checked manually.
textproc: align variable assignments pkglint -Wall -F --only aligned --only indent -r No manual corrections.
Changed PYTHON_VERSIONS_INCOMPATIBLE to PYTHON_VERSIONS_ACCEPTED; needed for future Python 3.8
fix some whitespace, mostly introduced in the previous python 3.4 / 3.5 removal commit.
Omit mentions of python 34 and 35, after those were removed. - Includes some whitespace changes, to be handled in a separate commit.
PKGREVISION bump for anything using python without a PYPKGPREFIX. This is a semi-manual PKGREVISION bump.
extend PYTHON_VERSIONS_ for Python 3.7
Add python-3.6 to incompatible versions.
Remove python33: adapt all packages that refer to it.
Update libplist to version 1.12.
Changelog:
Version 1.12
~~~~~~~~~~~~
- Changes:
* Fix plist_from_bin() changing value nodes to key nodes in dictionaries
* Avoid exporting non-public symbols
* Prevent crash in plist_from_bin() when parsing unusual binary plists
* Fix crash in String|Key::GetValue() and actually make C++ interface work
* Fix memory leaks in new_xml_plist() and parse_real_node()
* Fix header guards to conform to C++ standard
* Update Cython based Python bindings and remove plist_new_key()
* Fix key nodes not being output correctly if they contained XML entities
* Fix handling and storage of signed vs. unsigned integer values
* Fix date handling to respect the "Mac Epoch" instead of "Unix Epoch"
* Remove plist_set_type() as it should not be used
* Fix deprecated macros to work with older LLVM/Clang
* Fix various shadowed declarations
* Add documentation to explicitly describe memory buffer ownership
* Fix memory leak in plist_from_bin()
* Add various test cases based on fixes
* Fix wrong timezone related date/time conversion of date nodes
* Fix endian detection on MIPS architecture
* Fix parallel build for autotools
Version 1.11
~~~~~~~~~~~~
- Changes:
* Deprecated plist_dict_insert_item() in favor of plist_dict_set_item()
* Updated cython bindings for Python 3.x
* Removed swig python bindings
* Changed build system to autotools
* Added new plist_dict_merge() function
* WIN32 (MinGW) + OSX compilation fixes
* Made base64 decoding thread safe
Version 1.10
~~~~~~~~~~~~
- Changes:
* Renamed plutil to plistutil to not mask Apple's plutil
* Fixed cython bindings (broken in 1.9)
* Added support for PLIST_UID node types to C++, cython, and swig bindings
- Important Note:
* Support for swig python bindings will be dropped with future releases.
The bindings will be kept in the source tree for now, but we suggest
to update your python code to use the cython bindings instead.
Version 1.9
~~~~~~~~~~~
- Changes:
* Add support for handling UID node types
* Fix crash when converting plists containing comments
* Fix Bug in plist_data_compare()
* Fix DST handling for PLIST_DATE
* Fix plist_dict_set_item() and plist_array_set_item()
* Fix cython String plist handling
* Fix invalid memory access in copy_plist_data()
* Fix several compiler warnings
Extend PYTHON_VERSIONS_INCOMPATIBLE to 35
Mark packages that are not ready for python-3.3 also not ready for 3.4, until proven otherwise.
Mark packages as not ready for python-3.x where applicable; either because they themselves are not ready or because a dependency isn't. This is annotated by PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of x.y.z or PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-foo, py-bar respectively, please use the same style for other packages, and check during updates. Use versioned_dependencies.mk where applicable. Use REPLACE_PYTHON instead of handcoded alternatives, where applicable. Reorder Makefile sections into standard order, where applicable. Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default with the next commit. Whitespace cleanups and other nits corrected, where necessary.
Return end() when iteration fails due to node being NULL. Bump revision.
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
Replace undefined behavior in patch with defined behavior. PKGREVISION -> 2
Recursive PKGREVISION bump for libxml2 buildlink addition.
Update to 1.8, fix compilation issues.
Removed glib2 dependency, bump depends in bl3.mk.
Version 1.8
~~~~~~~~~~~
- Changes:
* Add cython bindings
* Fix error in swig bindings
* Fix memory corruption in libcnary
Version 1.7
~~~~~~~~~~~
- Changes:
* Fix building on Big Endian systems
Version 1.6
~~~~~~~~~~~
- Changes:
* Updated libcnary sources, adding license and copyright info
Version 1.5
~~~~~~~~~~~
- Changes:
* Removed glib dependency, libplist now uses libcnary
(http://github.com/Chronic-Dev/libcnary)
* Fix building of python bindings with GCC 4.6
Bump PKGREVISION from default python to 2.7.
Recursive bump for pcre-8.30* (shlib major change)
Revbump for a) tiff update to 4.0 (shlib major change) b) glib2 update 2.30.2 (adds libffi dependency to buildlink3.mk) Enjoy.
Fix build on 5.1/amd64 (PR 45691) -- cast long tv_sec to time_t. Not a problem in -current, where tv_sec is time_t.
PR/45646 -- libplist 1.4 has been released fixing memory leaks and a bug in writing binary plists.
Import libplist-1.3 as textproc/libplist. Library for handling Apple Binary and XML Property Lists.
Initial revision