113387
Subject: [PATCH] Further improve detection of corrupt records in fts3
113387
113387
---
113387
 ext/fts3/fts3_write.c | 2 +-
113387
 1 file changed, 1 insertion(+), 1 deletion(-)
113387
113387
diff --git a/ext/fts3/fts3_write.c b/ext/fts3/fts3_write.c
113387
index 5330b4c..0647bd7 100644
113387
--- a/ext/fts3/fts3_write.c
113387
+++ b/ext/fts3/fts3_write.c
113387
@@ -1376,7 +1376,7 @@ static int fts3SegReaderNext(
113387
   pNext += fts3GetVarint32(pNext, &nSuffix);
113387
   if( nSuffix<=0 
113387
    || (&pReader->aNode[pReader->nNode] - pNext)
113387
-   || nPrefix>pReader->nTermAlloc
113387
+   || nPrefix>pReader->nTerm
113387
   ){
113387
     return FTS_CORRUPT_VTAB;
113387
   }
113387
-- 
113387
2.30.2
113387