Hardened HnswLoadNeighborTids [skip ci]

(cherry picked from commit 87f925a13949d42623e05793ae9f4a2eadabb387)
This commit is contained in:
Andrew Kane
2026-09-11 13:47:35 -07:00
committed by zeekay
parent fe541eafd3
commit 686653be51
+1 -1
View File
@@ -779,7 +779,7 @@ HnswLoadNeighborTids(HnswElement element, ItemPointerData *indextids, Relation i
/* Copy to minimize lock time */
start = (element->level - lc) * m;
memcpy(indextids, ntup->indextids + start, lm * sizeof(ItemPointerData));
memcpy(indextids, ntup->indextids + start, mul_size(sizeof(ItemPointerData), lm));
UnlockReleaseBuffer(buf);
return true;