aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2024-10-17 18:12:03 +0000
committerdrh <>2024-10-17 18:12:03 +0000
commitfe15ed43423f06a69b3ccd0c12b13408a470c0e7 (patch)
treee82829bf4bd159d225acd1455e7763fa4dbf5413 /src
parenta9e4ebc51342d1f6d69db589149a66bd9cd7e583 (diff)
downloadsqlite-fe15ed43423f06a69b3ccd0c12b13408a470c0e7.tar.gz
sqlite-fe15ed43423f06a69b3ccd0c12b13408a470c0e7.zip
Fixes from code inspection:
(1) Extra paranoid defense against integer overflow. (2) Remove a stray blank line in an FTS5 comment. FossilOrigin-Name: 8563728deeb1d3ead9ff99a3ad2c7819b2223ead44e7374ecc7bbeda2d955ade
Diffstat (limited to 'src')
-rw-r--r--src/analyze.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analyze.c b/src/analyze.c
index fc8680d78..9213c202b 100644
--- a/src/analyze.c
+++ b/src/analyze.c
@@ -1800,8 +1800,8 @@ static int loadStatTbl(
char *zIndex; /* Index name */
Index *pIdx; /* Pointer to the index object */
int nSample; /* Number of samples */
- int nByte; /* Bytes of space required */
- int i; /* Bytes of space required */
+ i64 nByte; /* Bytes of space required */
+ i64 i; /* Bytes of space required */
tRowcnt *pSpace; /* Available allocated memory space */
u8 *pPtr; /* Available memory as a u8 for easier manipulation */