CYBER WATCH / EQUINOXE INTELLIGENCE

← All articles

b12083: ggml: avoid signed overflow in ggml_roll bounds check (#30375)

llama.cpp Releases · 2026-11-04 02:01:09

In ggml_roll, each shift was validated using abs(shift). However, abs(INT_MIN) triggers a signed integer overflow, leading to undefined behavior before the bounds check runs. The fix replaces this with a signed‑safe test.

Read original source ↗