返回全部动态

llama.cpp b12083:修复 ggml_roll 有符号溢出

原标题:b12083

llama.cpp Releases一手来源开源质量 49

AI 摘要

llama.cpp 发布 b12083 版本,修复了 ggml_roll 边界检查中的有符号整数溢出问题:原代码用 abs(shift) 校验位移量,但 abs(INT_MIN) 属于未定义行为,会在边界检查前触发溢出,现改为有符号安全的比较方式。该版本同时提供 macOS、Linux、Windows、Android 等多平台及 CUDA、Vulkan、ROCm、SYCL、OpenVINO 等后端构建产物。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

<details open> ggml: avoid signed overflow in ggml_roll bounds check (#30375) ggml_roll validated each shift with abs(shift), but abs(INT_MIN) is signed integer overflow UB evaluated before the bounds check runs. Compare with a signed-safe test instead. </details> **Website:** - <https://llama.app> **Attestations:** - <https://github.com/ggml-org/llama.cpp/attestations/63348301> **macOS/iOS:** - [macOS Apple Silicon (arm64)](https://github.com/ggml-org/llama.cpp/releases/download/b12083/ll


发布时间:2026-11-04 07:32
抓取时间:2026-11-04 08:21
来源机构:ggml-org
阅读原文github.com