pgvector.git / summary / log / commit / refs
commit d0f13d4e7f085fe3118f232e38b6b67d89fe4264
Author: Andrew Kane <andrew@ankane.org>
Date: Sun Jan 28 03:51:34 2024 +0000
Fixed possibly uninitialized memory in lists [skip ci]
src/ivfbuild.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ivfbuild.c b/src/ivfbuild.c
index e31f370c..c4f4d4bd 100644
--- a/src/ivfbuild.c
+++ b/src/ivfbuild.c
@@ -473,7 +473,7 @@ CreateListPages(Relation index, VectorArray centers, int dimensions,
IvfflatList list;
listSize = MAXALIGN(IVFFLAT_LIST_SIZE(dimensions));
- list = palloc(listSize);
+ list = palloc0(listSize);
buf = IvfflatNewBuffer(index, forkNum);
IvfflatInitRegisterPage(index, &buf, &page, &state);
[parent: 705e71015fa3]