You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VectorIndex::build() infers dimensions from first item without validation #979
vector.rs:251-257 — build() uses items[0].1.len() as dimension but never validates that all items have the same dimension. If items have mismatched lengths, the index silently corrupts or panics at query time.
Fix
Add a validation pass: iterate items and assert/return error if any item.1.len() != dims.
Activity
fix: security, data safety, and stability fixes (#973-#980) (#983)
ajianaz commentedon Aug 10, 2026
Fixed in #983 (merged to develop)
fix: security, data safety, and stability fixes (#973-#980) (#983)