[错误]: hnswlib 通过 `size_data_per_element_` 整数溢出而无法控制内存分配
作者: raefko创建于 2026年5月1日更新于 2026年9月24日
标签bug
- Clone the Chroma repository:
git clone https://GitHub.com/chroma-core/chroma
cd chroma/Rust/index- Build the fuzz target:
cargo +nightly fuzz build fuzz_hnsw_load_raw - Run against the 90-byte OOM artifact with an RSS limit that simulates a container:
cargo +nightly fuzz run fuzz_hnsw_load_raw \
fuzz/artifacts/fuzz_hnsw_load_raw/oom-f439d8158c86b2dc8c6f55e8ade71d6c14af924b \
-- -rss_limit_mb=512Proof of Concept
内容来源: chroma-core/chroma