# Llama.cpp fixes stale alloc cache that could overflow buffers

> The update changes how the RPC backend caches allocation sizes, stopping oversized tensors from overrunning server buffers.

Oossa · 2026-12-03 · https://oossa.com/en/llama-cpp-fixes-stale-alloc-cache-that-could-overflow-buffers

The ggml‑org/llama.cpp project released version b12971 on Dec 4 2026. It fixes a bug where the RPC client’s allocation‑size cache could reuse a size calculated for a small tensor on a larger one, risking buffer overrun on the server. The cache key now includes the full tensor layout and its source tensors, and the cache storage was moved to a dedicated context.

The fix was verified on an Apple M4 Max device using the test‑rpc‑multi‑server script.

## The facts

- Release tag b12971 was published on Dec 4 2026.
- Testing was done on an Apple M4 Max device.

## Why it matters

It stops server‑side buffer overruns that could crash RPC‑based Llama.cpp deployments.

## What it means for you

If you run Llama.cpp’s RPC backend on Apple Silicon, the update prevents crashes caused by oversized tensor allocations.

**Our take:** The change addresses a concrete stability issue for RPC users, but the release note does not detail performance impact.

## Sources & references

1. [ggml-org/llama.cpp b12971](https://github.com/ggml-org/llama.cpp/releases/tag/b12971) – llama.cpp, 2026-12-03

Last updated: 2026-12-03
