Skip to content

fix(index): make IVF buffer setter safe - #8602

Merged
Xuanwo merged 1 commit into
mainfrom
xuanwo/fix-ivf-shuffler-safe-setter
Aug 18, 2026
Merged

fix(index): make IVF buffer setter safe#8602
Xuanwo merged 1 commit into
mainfrom
xuanwo/fix-ivf-shuffler-safe-setter

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Aug 17, 2026

Copy link
Copy Markdown
Member

Setting IVF shuffle buffer names only copies strings; invalid or missing files are reported by the later fallible I/O operations and cannot violate memory safety. Remove the misleading unsafe contract and unnecessary unsafe blocks, and cover the missing-buffer error path through the safe setter.

@github-actions github-actions Bot added A-index Vector index, linalg, tokenizer bug Something isn't working labels Aug 17, 2026
@Xuanwo
Xuanwo marked this pull request as ready for review August 18, 2026 05:25
@codecov

codecov Bot commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Xuanwo
Xuanwo merged commit c8266cd into main Aug 18, 2026
39 of 40 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/fix-ivf-shuffler-safe-setter branch August 18, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-index Vector index, linalg, tokenizer bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants