diff options
author | drh <drh@noemail.net> | 2019-04-13 04:01:12 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-04-13 04:01:12 +0000 |
commit | 0aa3231ff0af4873cee2b044d1ba2b55688152b9 (patch) | |
tree | dc14c32f927a548a7adfaa2bd035fed60c5d3873 /src/util.c | |
parent | 158931ab640fe6b0d3829d0321d04a4315e6e6cb (diff) | |
download | sqlite-0aa3231ff0af4873cee2b044d1ba2b55688152b9.tar.gz sqlite-0aa3231ff0af4873cee2b044d1ba2b55688152b9.zip |
Enforce the SQLITE_LIMIT_COLUMN limit on virtual tables.
FossilOrigin-Name: 0b6ae032c28e7fe34d81d1769f6e2901addbd1b95cd9a255dcef274061fb0164
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c index 81d3bf36b..4fa92f83c 100644 --- a/src/util.c +++ b/src/util.c @@ -1597,7 +1597,7 @@ VList *sqlite3VListAdd( assert( pIn==0 || pIn[0]>=3 ); /* Verify ok to add new elements */ if( pIn==0 || pIn[1]+nInt > pIn[0] ){ /* Enlarge the allocation */ - int nAlloc = (pIn ? pIn[0]*2 : 10) + nInt; + sqlite3_int64 nAlloc = (pIn ? 2*(sqlite3_int64)pIn[0] : 10) + nInt; VList *pOut = sqlite3DbRealloc(db, pIn, nAlloc*sizeof(int)); if( pOut==0 ) return pIn; if( pIn==0 ) pOut[1] = 2; |