From 773e994d0c92fff19652f6c9bb41496df617e0bb Mon Sep 17 00:00:00 2001 From: Yashwanth Chandolu <0xyashwanth@gmail.com> Date: Sun, 4 Jan 2026 16:50:44 +0000 Subject: [PATCH] bug causing out-of-bounds memory access in AddUpdated when updating cached row status --- results.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/results.c b/results.c index cd1b0792..83ef69ea 100644 --- a/results.c +++ b/results.c @@ -2691,7 +2691,7 @@ MYLOG(DETAIL_LOG_LEVEL, "entering index=" FORMAT_LEN "\n", index); res->updated_keyset[upd_idx].status = status; if (res->updated_tuples) { - tuple = res->added_tuples + num_fields * upd_add_idx; + tuple = res->updated_tuples + num_fields * upd_idx; ClearCachedRows(tuple, num_fields, 1); } }