diff options
author | drh <> | 2024-10-17 18:12:03 +0000 |
---|---|---|
committer | drh <> | 2024-10-17 18:12:03 +0000 |
commit | fe15ed43423f06a69b3ccd0c12b13408a470c0e7 (patch) | |
tree | e82829bf4bd159d225acd1455e7763fa4dbf5413 /src | |
parent | a9e4ebc51342d1f6d69db589149a66bd9cd7e583 (diff) | |
download | sqlite-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.c | 4 |
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 */ |