From 5568157e7c17e747cd9d8d07b04769cf89ffc226 Mon Sep 17 00:00:00 2001 From: ryne3366 Date: Sat, 24 May 2025 10:08:48 +0800 Subject: [PATCH] =?UTF-8?q?[SQLite=E4=BF=AE=E5=A4=8D]Increase=20the=20size?= =?UTF-8?q?=20of=20a=20variable=20in=20FTS3=20to=20help=20static=20analyze?= =?UTF-8?q?rs=20see=20that=20there=20are=20no=20integer=20overflow=20probl?= =?UTF-8?q?ems.=20ref:https://sqlite.org/src/info/a921a4682fba23e1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ryne3366 --- src/sqlite3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqlite3.c b/src/sqlite3.c index 7fb290f..6dcd909 100644 --- a/src/sqlite3.c +++ b/src/sqlite3.c @@ -194346,7 +194346,7 @@ static int fts3tokFilterMethod( fts3tokResetCursor(pCsr); if( idxNum==1 ){ const char *zByte = (const char *)sqlite3_value_text(apVal[0]); - int nByte = sqlite3_value_bytes(apVal[0]); + sqlite3_int64 nByte = sqlite3_value_bytes(apVal[0]); pCsr->zInput = sqlite3_malloc64(nByte+1); if( pCsr->zInput==0 ){ rc = SQLITE_NOMEM; -- Gitee