ggml (src/, include/, cmake/) llama.cpp (ggml/)
cp -rpv ../ggml/src/ggml* ./ggml/src/n_dims <= GGML_MAX_DIMS && offset + size <= file_sizeCVE-2026-78147CVE-2026-78148CVE-2026-17501Code ancestry · pinned provenance
Explore documented code copies, pinned sources and attached public cases.
Each branch records an upstream repository relationship at a pinned commit across ggml, hnswlib, and TensorFlow / TSL. Select any repository, bezier branch, or relation mark to read its source quote, SHA-256 digest, and attached public cases.
3 shared codebases · 5 pinned copies
Lineage fork trace · nmslib/hnswlib → spotify/voyager
cur_element_count <= max_elements_ assumption crosses a fork (CVE-2026-124959 · VU#681158)nmslib/hnswlib and spotify/voyager carried this fallback into loadIndex.As released: cur_element_count from the index header passes without a bound check against max_elements_ and overflows data_level0_memory_ during the bulk read.
if (max_elements < cur_element_count)
max_elements = max_elements_; // keeps smaller prior allocation
inputStream->read(data_level0_memory_, cur_element_count * size_data_per_element_);ggml (src/, include/, cmake/) llama.cpp (ggml/)
cp -rpv ../ggml/src/ggml* ./ggml/src/n_dims <= GGML_MAX_DIMS && offset + size <= file_sizeCVE-2026-78147CVE-2026-78148CVE-2026-17501ggml (src/, include/, cmake/) whisper.cpp (ggml/)
cp -rpv ../ggml/src/ggml* ./ggml/src/n_dims <= GGML_MAX_DIMS && offset + size <= file_sizewhispercpp-ndimsCVE-2026-10298CVE-2026-17512CVE-2026-17513ggml (src/, include/) stable-diffusion.cpp (ggml/)
[submodule "ggml"] path = ggml url = https://github.com/leejet/ggml.gitn_dims <= GGML_MAX_DIMS && offset + size <= file_sizesdcpp-imatrix-duplicate-namehnswlib (hnswlib/hnswalg.h) spotify/voyager (cpp/src/hnswalg.h)
if (max_elements < cur_element_count) max_elements = max_elements_; ... inputStream->read(data_level0_memory_, bytes_to_read);cur_element_count <= max_elements_ before level-0 bulk readCVE-2026-124959CERT/CC VU#681158TensorFlow (TSL) (tensorflow/tsl) OpenXLA (TSL copy) (third_party/tsl (xla/tsl))
XLA depends on TSL not by downloading a copy by using Bazel's `http_archive`, but by having Copybara copy TSL into XLA's `third_party` directory.Copybara-mirrored TSL record & stream boundstensorflow/tensorflow#130078| Origin | Downstream copy | Relation | Pinned basis | Checked |
|---|---|---|---|---|
| ggml (src/, include/, cmake/) | llama.cpp (ggml/) | Vendored mirror | scripts/sync-ggml.sh at 0a94a3f289 | 2026-11-09 |
| ggml (src/, include/, cmake/) | whisper.cpp (ggml/) | Vendored mirror | scripts/sync-ggml.sh at bd9e1a1235 | 2026-11-09 |
| ggml (src/, include/) | stable-diffusion.cpp (ggml/) | Vendored mirror partial basis | .gitmodules at a3c49b13be | 2026-11-09 |
| hnswlib (hnswlib/hnswalg.h) | spotify/voyager (cpp/src/hnswalg.h) | In-tree fork | cpp/src/hnswalg.h at 2a2f1f134a | 2026-11-05 |
| TensorFlow (TSL) (tensorflow/tsl) | OpenXLA (TSL copy) (third_party/tsl (xla/tsl)) | Vendored mirror partial basis | docs/copybara.md at 1aa760798a | 2026-11-09 |