Home
last modified time | relevance | path

Searched refs:nPrefix (Results 1 – 9 of 9) sorted by relevance

/external/chromium_org/third_party/sqlite/
Dfts3.patch17 - if( nPrefix<0 || nSuffix<0 || &zCsr[nSuffix]>zEnd ){
18 + /* NOTE(shess): Previous code checked for negative nPrefix and
23 + if( nPrefix<0 || nSuffix<0 || nPrefix>nBuffer
Dfts2.patch1114 int n, nPrefix, nSuffix;
1116 - n = getVarint32(pReader->pData, &nPrefix);
1118 + n = getVarint32Safe(pReader->pData, &nPrefix, pReader->nData);
1127 + if( nPrefix<0 || nPrefix>pReader->term.nData ) return SQLITE_CORRUPT_BKPT;
1130 pReader->term.nData = nPrefix;
1203 int n, nData, nPrefix, nSuffix;
1218 - n = getVarint32(pReader->pData, &nPrefix);
1221 + n = getVarint32Safe(pReader->pData, &nPrefix, pReader->nData);
1230 + if( nPrefix<0 || nPrefix>pReader->term.nData ) return SQLITE_CORRUPT_BKPT;
1231 pReader->term.nData = nPrefix;
/external/chromium_org/third_party/sqlite/src/ext/fts3/
Dfts3_write.c914 int nPrefix; /* Number of bytes in term prefix */ in fts3SegReaderNext() local
964 pNext += sqlite3Fts3GetVarint32(pNext, &nPrefix); in fts3SegReaderNext()
966 if( nPrefix<0 || nSuffix<=0 in fts3SegReaderNext()
972 if( nPrefix+nSuffix>pReader->nTermAlloc ){ in fts3SegReaderNext()
973 int nNew = (nPrefix+nSuffix)*2; in fts3SegReaderNext()
981 memcpy(&pReader->zTerm[nPrefix], pNext, nSuffix); in fts3SegReaderNext()
982 pReader->nTerm = nPrefix+nSuffix; in fts3SegReaderNext()
1516 int nPrefix; /* Number of bytes of prefix compression */ in fts3NodeAddTerm() local
1519 nPrefix = fts3PrefixCompress(pTree->zTerm, pTree->nTerm, zTerm, nTerm); in fts3NodeAddTerm()
1520 nSuffix = nTerm-nPrefix; in fts3NodeAddTerm()
[all …]
Dfts3.c1222 int nPrefix = 0; /* Size of term prefix */ in fts3ScanInteriorNode() local
1228 zCsr += sqlite3Fts3GetVarint32(zCsr, &nPrefix); in fts3ScanInteriorNode()
1238 if( nPrefix<0 || nSuffix<0 /* || nPrefix>nBuffer */ in fts3ScanInteriorNode()
1243 if( nPrefix+nSuffix>nAlloc ){ in fts3ScanInteriorNode()
1245 nAlloc = (nPrefix+nSuffix) * 2; in fts3ScanInteriorNode()
1253 memcpy(&zBuffer[nPrefix], zCsr, nSuffix); in fts3ScanInteriorNode()
1254 nBuffer = nPrefix + nSuffix; in fts3ScanInteriorNode()
/external/chromium_org/third_party/sqlite/src/ext/fts2/
Dfts2.c4420 int n, nPrefix = 0; in interiorWriterAppend() local
4433 while( nPrefix<pWriter->term.nData && in interiorWriterAppend()
4434 pTerm[nPrefix]==pWriter->term.pData[nPrefix] ){ in interiorWriterAppend()
4435 nPrefix++; in interiorWriterAppend()
4438 n = putVarint(c, nPrefix); in interiorWriterAppend()
4439 n += putVarint(c+n, nTerm-nPrefix); in interiorWriterAppend()
4450 if( pWriter->last->data.nData+n+nTerm-nPrefix>INTERIOR_MAX && in interiorWriterAppend()
4459 pTerm+nPrefix, nTerm-nPrefix); in interiorWriterAppend()
4615 int n, nPrefix, nSuffix; in interiorReaderStep() local
4617 n = getVarint32Safe(pReader->pData, &nPrefix, pReader->nData); in interiorReaderStep()
[all …]
/external/chromium_org/third_party/sqlite/src/test/
Dfts3_common.tcl231 set nPrefix [gobble_varint blob]
/external/sqlite/dist/orig/
Dsqlite3.c116624 int nPrefix; /* Prefix length (0 for main terms index) */
117568 int nPrefix;
117569 if( fts3GobbleInt(&p, &nPrefix) ) return SQLITE_ERROR;
117570 aIndex[i].nPrefix = nPrefix;
118256 int nPrefix = 0; /* Size of term prefix */
118262 zCsr += sqlite3Fts3GetVarint32(zCsr, &nPrefix);
118267 if( nPrefix<0 || nSuffix<0 || &zCsr[nSuffix]>zEnd ){
118271 if( nPrefix+nSuffix>nAlloc ){
118273 nAlloc = (nPrefix+nSuffix) * 2;
118282 memcpy(&zBuffer[nPrefix], zCsr, nSuffix);
[all …]
/external/sqlite/dist/
Dsqlite3.c116660 int nPrefix; /* Prefix length (0 for main terms index) */
117604 int nPrefix;
117605 if( fts3GobbleInt(&p, &nPrefix) ) return SQLITE_ERROR;
117606 aIndex[i].nPrefix = nPrefix;
118292 int nPrefix = 0; /* Size of term prefix */
118298 zCsr += sqlite3Fts3GetVarint32(zCsr, &nPrefix);
118303 if( nPrefix<0 || nSuffix<0 || &zCsr[nSuffix]>zEnd ){
118307 if( nPrefix+nSuffix>nAlloc ){
118309 nAlloc = (nPrefix+nSuffix) * 2;
118318 memcpy(&zBuffer[nPrefix], zCsr, nSuffix);
[all …]
/external/chromium_org/third_party/sqlite/amalgamation/
Dsqlite3.c114474 int nPrefix = 0; /* Size of term prefix */
114480 zCsr += sqlite3Fts3GetVarint32(zCsr, &nPrefix);
114490 if( nPrefix<0 || nSuffix<0 /* || nPrefix>nBuffer */
114495 if( nPrefix+nSuffix>nAlloc ){
114497 nAlloc = (nPrefix+nSuffix) * 2;
114505 memcpy(&zBuffer[nPrefix], zCsr, nSuffix);
114506 nBuffer = nPrefix + nSuffix;
121022 int nPrefix; /* Number of bytes in term prefix */
121072 pNext += sqlite3Fts3GetVarint32(pNext, &nPrefix);
121074 if( nPrefix<0 || nSuffix<=0
[all …]