From 1002b67566dfbeb6c0705d86acbe2410f9dd7cba Mon Sep 17 00:00:00 2001 From: zwtmichael Date: Thu, 12 Sep 2024 10:06:13 +0800 Subject: [PATCH] fix a technically undefined signed integer overflow in fts5 Signed-off-by: zwtmichael --- src/sqlite3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqlite3.c b/src/sqlite3.c index b80d9f2..153538c 100644 --- a/src/sqlite3.c +++ b/src/sqlite3.c @@ -231974,7 +231974,7 @@ static void fts5SegIterNext_None( if( iOffiEndofDoclist ){ /* Next entry is on the current page */ - i64 iDelta; + u64 iDelta; iOff += sqlite3Fts5GetVarint(&pIter->pLeaf->p[iOff], (u64*)&iDelta); pIter->iLeafOffset = iOff; pIter->iRowid += iDelta; -- Gitee