Searched refs:nSuffix (Results 1 – 9 of 9) sorted by relevance
/external/chromium_org/third_party/sqlite/ |
D | fts3.patch | 15 zCsr += sqlite3Fts3GetVarint32(zCsr, &nSuffix); 17 - if( nPrefix<0 || nSuffix<0 || &zCsr[nSuffix]>zEnd ){ 19 + ** nSuffix and suffix overrunning zEnd. Additionally corrupt if 23 + if( nPrefix<0 || nSuffix<0 || nPrefix>nBuffer 24 + || &zCsr[nSuffix]<zCsr || &zCsr[nSuffix]>zEnd ){
|
D | fts2.patch | 1114 int n, nPrefix, nSuffix; 1117 - n += getVarint32(pReader->pData+n, &nSuffix); 1122 + n = getVarint32Safe(pReader->pData, &nSuffix, pReader->nData); 1126 + if( nSuffix<0 || nSuffix>pReader->nData ) return SQLITE_CORRUPT_BKPT; 1131 - dataBufferAppend(&pReader->term, pReader->pData+n, nSuffix); 1132 + dataBufferAppend(&pReader->term, pReader->pData, nSuffix); 1134 - assert( n+nSuffix<=pReader->nData ); 1135 - pReader->pData += n+nSuffix; 1136 - pReader->nData -= n+nSuffix; 1137 + pReader->pData += nSuffix; [all …]
|
/external/chromium_org/third_party/sqlite/src/ext/fts3/ |
D | fts3_write.c | 915 int nSuffix; /* Number of bytes in term suffix */ in fts3SegReaderNext() local 965 pNext += sqlite3Fts3GetVarint32(pNext, &nSuffix); in fts3SegReaderNext() 966 if( nPrefix<0 || nSuffix<=0 in fts3SegReaderNext() 967 || &pNext[nSuffix]>&pReader->aNode[pReader->nNode] 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() 983 pNext += nSuffix; in fts3SegReaderNext() 1517 int nSuffix; /* Suffix length */ in fts3NodeAddTerm() local [all …]
|
D | fts3.c | 1221 int nSuffix; /* Size of term suffix */ in fts3ScanInteriorNode() local 1231 zCsr += sqlite3Fts3GetVarint32(zCsr, &nSuffix); in fts3ScanInteriorNode() 1238 if( nPrefix<0 || nSuffix<0 /* || nPrefix>nBuffer */ in fts3ScanInteriorNode() 1239 || &zCsr[nSuffix]<zCsr || &zCsr[nSuffix]>zEnd ){ 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() 1255 zCsr += nSuffix; in fts3ScanInteriorNode()
|
/external/chromium_org/third_party/sqlite/src/test/ |
D | fts3_common.tcl | 232 set nSuffix [gobble_varint blob] 235 append zTerm [gobble_string blob $nSuffix]
|
/external/chromium_org/third_party/sqlite/src/ext/fts2/ |
D | fts2.c | 4615 int n, nPrefix, nSuffix; in interiorReaderStep() local 4621 n = getVarint32Safe(pReader->pData, &nSuffix, pReader->nData); in interiorReaderStep() 4625 if( nSuffix<0 || nSuffix>pReader->nData ) return SQLITE_CORRUPT_BKPT; in interiorReaderStep() 4630 dataBufferAppend(&pReader->term, pReader->pData, nSuffix); in interiorReaderStep() 4632 pReader->pData += nSuffix; in interiorReaderStep() 4633 pReader->nData -= nSuffix; in interiorReaderStep() 5193 int n, nData, nPrefix, nSuffix; in leafReaderStep() local 5210 n = getVarint32Safe(pReader->pData, &nSuffix, pReader->nData); in leafReaderStep() 5214 if( nSuffix<0 || nSuffix>pReader->nData ) return SQLITE_CORRUPT_BKPT; in leafReaderStep() 5217 dataBufferAppend(&pReader->term, pReader->pData, nSuffix); in leafReaderStep() [all …]
|
/external/chromium_org/third_party/sqlite/amalgamation/ |
D | sqlite3.c | 114473 int nSuffix; /* Size of term suffix */ 114483 zCsr += sqlite3Fts3GetVarint32(zCsr, &nSuffix); 114490 if( nPrefix<0 || nSuffix<0 /* || nPrefix>nBuffer */ 114491 || &zCsr[nSuffix]<zCsr || &zCsr[nSuffix]>zEnd ){ 114495 if( nPrefix+nSuffix>nAlloc ){ 114497 nAlloc = (nPrefix+nSuffix) * 2; 114505 memcpy(&zBuffer[nPrefix], zCsr, nSuffix); 114506 nBuffer = nPrefix + nSuffix; 114507 zCsr += nSuffix; 121023 int nSuffix; /* Number of bytes in term suffix */ [all …]
|
/external/sqlite/dist/orig/ |
D | sqlite3.c | 118255 int nSuffix; /* Size of term suffix */ 118265 zCsr += sqlite3Fts3GetVarint32(zCsr, &nSuffix); 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); 118283 nBuffer = nPrefix + nSuffix; 118284 zCsr += nSuffix; 126256 int nSuffix; /* Number of bytes in term suffix */ 126312 pNext += sqlite3Fts3GetVarint32(pNext, &nSuffix); [all …]
|
/external/sqlite/dist/ |
D | sqlite3.c | 118291 int nSuffix; /* Size of term suffix */ 118301 zCsr += sqlite3Fts3GetVarint32(zCsr, &nSuffix); 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); 118319 nBuffer = nPrefix + nSuffix; 118320 zCsr += nSuffix; 126304 int nSuffix; /* Number of bytes in term suffix */ 126360 pNext += sqlite3Fts3GetVarint32(pNext, &nSuffix); [all …]
|