---
title: "libcbor 0.15.0 Breaking Changes on vcpkg | Since.dev"
description: "What each libcbor release removed, renamed or changed: 26 breaking changes in 5 versions on vcpkg, each with its source."
canonical_url: https://since.dev/packages/vcpkg/libcbor
last_updated: 2026-12-04
---

# 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

Latest version `0.15.1`, released December 3, 2026. [Source repository](https://github.com/PJK/libcbor)

- From [0.9.0](#v-0-9-0) to [0.15.0](#v-0-15-0): 25 breaking changes in 4 versions.

## libcbor 0.15.0 breaking changes

libcbor 0.15.0, released November 21, 2026: 16 breaking changes.

- **Removed**  

The SANE_MALLOC CMake build option was removed. Build scripts that set it will no longer have an effect. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Removed** `_cbor_map_add_key`  

The internal \_cbor_map_add_key is no longer exported. Use cbor_map_add instead. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **Removed** `_cbor_map_add_value`  

The internal \_cbor_map_add_value is no longer exported. Use cbor_map_add instead. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **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](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **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](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **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](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **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](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **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](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **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](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **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](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **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](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **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](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **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](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **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](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **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](https://github.com/PJK/libcbor/releases/tag/v0.15.0)
- **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](https://github.com/PJK/libcbor/releases/tag/v0.15.0)

## libcbor 0.14.0 breaking changes

libcbor 0.14.0: 1 breaking change.

- **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](https://github.com/PJK/libcbor/releases/tag/v0.14.0)

## libcbor 0.11.0 breaking changes

libcbor 0.11.0: 2 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](https://github.com/PJK/libcbor/releases/tag/v0.11.0)
- **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](https://github.com/PJK/libcbor/releases/tag/v0.11.0)

## libcbor 0.10.0 breaking changes

libcbor 0.10.0: 6 breaking changes.

- **Behavior changed**  

Most functions now carry nodiscard attributes, which may cause new build warnings or errors. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.10.0)
- **Behavior changed** `cbor_copy`  

cbor_copy may return NULL upon failure, so callers must check the return value. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.10.0)
- **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](https://github.com/PJK/libcbor/releases/tag/v0.10.0)
- **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](https://github.com/PJK/libcbor/releases/tag/v0.10.0)
- **Configuration changed**  

Build now requires CMake 3.0 minimum; most users should not be affected. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.10.0)
- **Signature changed** `cbor_serialize_alloc`  

The buffer_size argument of cbor_serialize_alloc is now optional. [github.com](https://github.com/PJK/libcbor/releases/tag/v0.10.0)

## libcbor 0.9.0 breaking changes

libcbor 0.9.0: 1 breaking change.

- **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](https://github.com/PJK/libcbor/releases/tag/v0.9.0)

## Related packages

- [libcbor](https://since.dev/packages/homebrew/libcbor.md):  on Homebrew

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
