Skip to content

fix: asan issues(visit_filter off-by-one and other) - #650

Open
JalinWang wants to merge 3 commits into
alibaba:mainfrom
JalinWang:fix/asan
Open

fix: asan issues(visit_filter off-by-one and other)#650
JalinWang wants to merge 3 commits into
alibaba:mainfrom
JalinWang:fix/asan

Conversation

@JalinWang

@JalinWang JalinWang commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator
  • visit_filter.h: off-by-one in VisitByteMap bounds check (> → >=)
  • diskann_builder_entity: brace-init → parentheses-init for vector fill
  • diskann_util: guard aligned_alloc for size==0 and round up to alignment
  • mmap_file/mmap_file_read_storage: null-check before close/unmap
  • heap corruption: fix(core): use Heap::emplace in groupby/bf search #633

- visit_filter.h: off-by-one in VisitByteMap bounds check (> → >=)
- hnsw/hnsw_rabitq/hnsw_sparse: use emplace() instead of emplace_back()
  on TopkHeap/CandidateHeap to maintain heap invariant
- diskann_builder_entity: brace-init → parentheses-init for vector fill
- diskann_util: guard aligned_alloc for size==0 and round up to alignment
- mmap_file/mmap_file_read_storage: null-check before close/unmap
@JalinWang
JalinWang requested review from egolearner and removed request for chinaux August 4, 2026 03:15
@JalinWang JalinWang changed the title fix: visit_filter off-by-one and add mmap guard for size=0 fix: asan issues(visit_filter off-by-one and other) Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant