libcbor breaking changes
libcbor 0.15.0 (November 21, 2026) is its newest release with breaking changes, 16 of them. The first: Test-only SANE_MALLOC CMake option removed in libcbor 0.15.0. Every breaking API change we have recorded in libcbor on vcpkg: 26 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.15.1, released December 3, 2026. Source repository
libcbor 0.15.0 breaking changes
- Removed
The SANE_MALLOC CMake build option was removed. Build scripts that set it will no longer have an effect. github.com - Removed
_cbor_map_add_key
The internal _cbor_map_add_key is no longer exported. Use cbor_map_add instead. github.com - Removed
_cbor_map_add_value
The internal _cbor_map_add_value is no longer exported. Use cbor_map_add instead. github.com - Removed
cbor_decref
cbor_decref is now a static inline function in the headers and is no longer exported. Binaries that link to or dlsym it must be rebuilt against the new headers. github.com - Removed
cbor_incref
cbor_incref is now a static inline function in the headers and is no longer exported. Binaries that link to or dlsym it must be rebuilt against the new headers. github.com - Behavior changed
cbor_array_handle
Empty definite items no longer have a zero-byte buffer, so the handle functions return NULL on all platforms. Code that asserted a non-NULL pointer or passed it to memcpy with zero length must change. github.com - Behavior changed
cbor_bytestring_handle
Empty definite items no longer have a zero-byte buffer, so the handle functions return NULL on all platforms. Code that asserted a non-NULL pointer or passed it to memcpy with zero length must change. github.com - Behavior changed
cbor_encode_double
NaNs are now encoded with their original bit pattern instead of the canonical quiet NaN. Clients that relied on normalized NaN output will see different bytes. github.com - Behavior changed
cbor_encode_single
NaNs are now encoded with their original bit pattern instead of the canonical quiet NaN. Clients that relied on normalized NaN output will see different bytes. github.com - Behavior changed
cbor_load
Inputs declaring more items than can be allocated now fail with the error found further on, usually CBOR_ERR_NOTENOUGHDATA, instead of CBOR_ERR_MEMERROR. Clients that keep reading on CBOR_ERR_NOTENOUGHDATA need their own input size limit. github.com - Behavior changed
cbor_map_handle
Empty definite items no longer have a zero-byte buffer, so the handle functions return NULL on all platforms. Code that asserted a non-NULL pointer or passed it to memcpy with zero length must change. github.com - Behavior changed
cbor_set_allocs
Custom free implementations installed via cbor_set_allocs are now called with NULL for every empty item. They must accept NULL as the standard free does. github.com - Behavior changed
cbor_stream_decode
Simple values 0 to 19 and 32 to 255 that used to be rejected are now decoded as ctrl items. Code that depended on these inputs failing must handle them. github.com - Behavior changed
cbor_string_handle
Empty definite items no longer have a zero-byte buffer, so the handle functions return NULL on all platforms. Code that asserted a non-NULL pointer or passed it to memcpy with zero length must change. github.com - Configuration changed
libcbor no longer calls ldexp and no longer links libm. Code that relied on libcbor to pull in libm must link it itself. github.com - Signature changed
struct cbor_callbacks
A new simple_value member was appended to struct cbor_callbacks. Callback sets that do not initialize it will dereference NULL on such input, so set it or use cbor_empty_callbacks. github.com
libcbor 0.14.0 breaking changes
- Behavior changed
cbor_encode_half
Half-precision encoding now keeps the sign and payload of NaN values and the sign of tiny floats, so encoded bytes for those values can differ from earlier releases. github.com
libcbor 0.11.0 breaking changes
- Behavior changed
cbor_load
cbor_load now accepts input strings that are well-formed but not valid UTF-8 instead of failing. Code that relied on that validation must check the result with cbor_string_codepoint_count instead. github.com - Behavior changed
cbor_stream_decode
cbor_stream_decode now accepts every well-formed tag value, where certain values previously failed with CBOR_ERR_MALFORMATED or CBOR_DECODER_ERROR. Code that depended on those errors must be updated. github.com
libcbor 0.10.0 breaking changes
- Behavior changed
Most functions now carry nodiscard attributes, which may cause new build warnings or errors. github.com - Behavior changed
cbor_copy
cbor_copy may return NULL upon failure, so callers must check the return value. github.com - Behavior changed
cbor_serialize_alloc
Clients should not use the return value of cbor_serialize_alloc, which may be removed in the future. github.com - Behavior changed
half-float encoding
Denormalized half-floats are now encoded differently and keep mantissa data, so serialized bytes for such values change. github.com - Configuration changed
Build now requires CMake 3.0 minimum; most users should not be affected. github.com - Signature changed
cbor_serialize_alloc
The buffer_size argument of cbor_serialize_alloc is now optional. github.com
libcbor 0.9.0 breaking changes
- Signature changed
Callbacks for bytestrings, strings, arrays, and maps now use uint64_t instead of size_t, so user callback signatures must be updated to match. github.com
Related packages
- libcbor on Homebrew
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.