From 10416b841f6a7967d43c03287b82124f966ae1ec Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sat, 27 Jan 2024 19:54:16 -0800 Subject: [PATCH] Fixed uninitialized memory in scan->xs_recheck [skip ci] --- src/hnswscan.c | 1 + src/ivfscan.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/hnswscan.c b/src/hnswscan.c index e46c657..eaf0519 100644 --- a/src/hnswscan.c +++ b/src/hnswscan.c @@ -202,6 +202,7 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir) MemoryContextSwitchTo(oldCtx); scan->xs_heaptid = *heaptid; + scan->xs_recheck = false; scan->xs_recheckorderby = false; return true; } diff --git a/src/ivfscan.c b/src/ivfscan.c index 5e69c39..9b0e03e 100644 --- a/src/ivfscan.c +++ b/src/ivfscan.c @@ -310,6 +310,7 @@ ivfflatgettuple(IndexScanDesc scan, ScanDirection dir) ItemPointer heaptid = (ItemPointer) DatumGetPointer(slot_getattr(so->slot, 2, &so->isnull)); scan->xs_heaptid = *heaptid; + scan->xs_recheck = false; scan->xs_recheckorderby = false; return true; }