diff options
-rw-r--r-- | third_party/sqlite/ext/fts3/fts3.c | 2 | ||||
-rw-r--r-- | third_party/sqlite/fts3.patch | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/third_party/sqlite/ext/fts3/fts3.c b/third_party/sqlite/ext/fts3/fts3.c index d118c41..3e87a40 100644 --- a/third_party/sqlite/ext/fts3/fts3.c +++ b/third_party/sqlite/ext/fts3/fts3.c @@ -4717,7 +4717,7 @@ static int interiorReaderStep(InteriorReader *pReader){ if( !n ) return SQLITE_CORRUPT_BKPT; pReader->nData -= n; pReader->pData += n; - n += fts3GetVarint32Safe(pReader->pData, &nSuffix, pReader->nData); + n = fts3GetVarint32Safe(pReader->pData, &nSuffix, pReader->nData); if( !n ) return SQLITE_CORRUPT_BKPT; pReader->nData -= n; pReader->pData += n; diff --git a/third_party/sqlite/fts3.patch b/third_party/sqlite/fts3.patch index 83d2412..622626a 100644 --- a/third_party/sqlite/fts3.patch +++ b/third_party/sqlite/fts3.patch @@ -1110,7 +1110,7 @@ Index: ext/fts3/fts3.c + if( !n ) return SQLITE_CORRUPT_BKPT; + pReader->nData -= n; + pReader->pData += n; -+ n += fts3GetVarint32Safe(pReader->pData, &nSuffix, pReader->nData); ++ n = fts3GetVarint32Safe(pReader->pData, &nSuffix, pReader->nData); + if( !n ) return SQLITE_CORRUPT_BKPT; + pReader->nData -= n; + pReader->pData += n; |