百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
返回工具页/返回 Issues 列表
#7011·chroma

[错误]: hnswlib 通过 `size_data_per_element_` 整数溢出而无法控制内存分配

作者: raefko创建于 2026年5月1日更新于 2026年9月24日
标签bug
  1. Clone the Chroma repository:
bash
git clone https://GitHub.com/chroma-core/chroma
cd chroma/Rust/index
  1. Build the fuzz target: cargo +nightly fuzz build fuzz_hnsw_load_raw
  2. Run against the 90-byte OOM artifact with an RSS limit that simulates a container:
bash
cargo +nightly fuzz run fuzz_hnsw_load_raw \
fuzz/artifacts/fuzz_hnsw_load_raw/oom-f439d8158c86b2dc8c6f55e8ade71d6c14af924b \
-- -rss_limit_mb=512

Proof of Concept

内容来源: chroma-core/chroma

查看 GitHub 原文在 GitHub 查看讨论