From d0f13d4e7f085fe3118f232e38b6b67d89fe4264 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sat, 27 Jan 2024 19:51:34 -0800 Subject: [PATCH] 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 e31f370..c4f4d4b 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);